本节知识点
(一) 基本实例
<div id="picbox" class="carousel slide">
<ol class="carousel-indicators">
<li data-target="#picbox" data-slide-to="0" class="active"></li>
<li data-target="#picbox" data-slide-to="1"></li>
<li data-target="#picbox" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="item active">
<img src="images/lunbo1.jpg" alt="">
</div>
<div class="item">
<img src="images/lunbo2.jpg" alt="">
</div>
<div class="item">
<img src="images/lunbo3.jpg" alt="">
</div>
</div>
<a href="#picbox" data-slide="prev" class="carousel-control left"> <</a>
<a href="#picbox" data-slide="next" class="carousel-control right"> ></a>
</div>
<script>
$(function(){
$("#picbox").carousel({
interval:5000, //间隔
pause: 'hover', //停止的方式
wrap:false, //要是true 就无限循环
})
})
</script>