要加上 data-target="#slidershow" data-slide-to="0"
即
<ol class="carousel-indicators">
<li class="active" data-target="#slidershow" data-slide-to="0">1</li>
<li data-target="#slidershow" data-slide-to="1">2</li>
<li data-target="#slidershow" data-slide-to="2">3</li>
</ol>
即
<ol class="carousel-indicators">
<li class="active" data-target="#slidershow" data-slide-to="0">1</li>
<li data-target="#slidershow" data-slide-to="1">2</li>
<li data-target="#slidershow" data-slide-to="2">3</li>
</ol>
2016-06-24
<ol class="carousel-indicators">
<li class="active" data-target="#slidershow" data-slide-to="0">1</li>
<li data-target="#slidershow" data-slide-to="1">2</li>
<li data-target="#slidershow" data-slide-to="2">3</li>
</ol>
<li class="active" data-target="#slidershow" data-slide-to="0">1</li>
<li data-target="#slidershow" data-slide-to="1">2</li>
<li data-target="#slidershow" data-slide-to="2">3</li>
</ol>
2016-06-24
答案用$(this)有问题,应该是
$("#close").on("click",function(){
$("#myAlert").alert("close");
});
$("#close").on("click",function(){
$("#myAlert").alert("close");
});
2016-06-22
<script>
$(function (){
$(".scrollspy-example").scrollspy({
target:"#navbar-example2",
offset:40
});
$("[data-spy='scroll']").each(function (){
var $spy = $(this).scrollspy("refresh");
});
})
</script>
$(function (){
$(".scrollspy-example").scrollspy({
target:"#navbar-example2",
offset:40
});
$("[data-spy='scroll']").each(function (){
var $spy = $(this).scrollspy("refresh");
});
})
</script>
2016-06-13
有个过渡效果产生,在模态弹出窗内容 --> div.modal后面添加fade
div class="modal fade"(第12行)
div class="modal fade"(第12行)
2016-06-13