<body>
<!-- carousel 轮播图的模块 slide是否加上滑动效果 -->
<!-- data-ride="carousel" 初始化轮播图属性-->
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- 点盒子 -->
<ol class="carousel-indicators">
<!--
data-target="#carousel-example-generic" 控制目标轮播图
data-slide-to="0" 控制的是轮播图当中的第几张 (索引)
class="active" 当前选中的点
-->
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<!-- 图片盒子 -->
<!-- role="listbox" 提供给屏幕阅读器使用 -->
<div class="carousel-inner">
<!--需要轮播的容器-->
<div class="item active">
<!--图片-->
<img src="..." alt="...">
<!--说明-->
<div class="carousel-caption">
...
</div>
</div>
<div class="item">
<img src="..." alt="...">
<div class="carousel-caption">
...
</div>
</div>
...
</div>
<!-- 上一张下一张按钮 -->
<!--
data-slide="prev"
data-slide="next"
href="#carousel-example-generic" 控制目标轮播图
-->
<a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>