<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- 轮播(Carousel)指标 -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<!-- 轮播(Carousel)项目 -->
<div class="carousel-inner">
<div class="item active">
<a href="#">
<img src="/wp-content/uploads/2014/07/slide1.png" alt="First slide">
</a>
<div class="carousel-caption">标题 1</div>
</div>
<div class="item">
<a href="#">
<img src="/wp-content/uploads/2014/07/slide2.png" alt="Second slide">
</a>
<div class="carousel-caption">标题 2</div>
</div>
<div class="item">
<a href="#">
<img src="/wp-content/uploads/2014/07/slide3.png" alt="Third slide">
</a>
<div class="carousel-caption">标题 3</div>
</div>
</div>
<!-- 轮播(Carousel)导航 -->
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<style>
.carousel-caption{
color:#ffffff;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=60);/**兼容IE8,文本背景变透明*/
}
</style>
<script>
$('.carousel').carousel();//开启自动轮播
</script>