2017-07-13 68 views
0

我有一个旋转木马,它工作的很好,但是当我点击任何点时,dot1消失。我检查了它的CSS,并且据我所知,当我点击任何点时,dot1会从某处获得CSS显示:无。旋转木马指示器dot1不显示点击

这是我的代码点。

<ol class="dotss carousel-indicators" style="margin-top: 20px;z-index: 0;"> 
       <li data-target="#carousel-example-generic" data-slide-to="0" class="abc active" id="a"></li> 
       <li data-target="#carousel-example-generic" data-slide-to="1" class="abc" id="b"></li> 
       <li data-target="#carousel-example-generic" data-slide-to="2" class="abc" id="c"></li> 
</ol> 

这段代码我用来给它着色。

$("ol li").click(function(){ 
var id= $(this).attr('id'); 

if (id == "a") { 
$("#a").css("background-color", "white"); 
$("#b").css("background-color", "#247ba0"); 
$("#c").css("background-color", "#247ba0"); 
    } 
if (id == "b") { 
$("#b").css("background-color", "white"); 
$("#a").css("background-color", "#247ba0"); 
$("#c").css("background-color", "#247ba0"); 
    } 
    if (id == "c") { 
    $("#c").css("background-color", "white"); 
    $("#a").css("background-color", "#247ba0"); 
    $("#b").css("background-color", "#247ba0"); 
} 



}); 

这是实时链接。 http://www.millionmilestech.com/innovision/index.html

+0

旋转木马在哪里? – azad

+0

在页面左侧。一个图像的左侧。 –

回答

0

试试这个代码:

$(document).on('click', '.undo_comment_delete_js', function() {}); 

它可能会奏效。

+0

它应该如何工作?你能解释一下吗?什么是undo_comment_delete_js? –