用bootstrap实现图片的轮播
2017-05-09 12:11
337 查看
记得导入bootstrap.css,如果出现无法显示图标的情况,参见我的另一篇博文。
<!--图片轮播--> <div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> <!--轮播图片的提示点--> <ol class="carousel-indicators"> <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> <!--轮播图片--> <div class="carousel-inner" role="listbox"> <div class="item active"> <img src="../images/carousel1.jpg" alt="1"> <div class="carousel-caption"> <h4>教学天地</h4><!--可以设置浮动在图片上面的文字--> <p>这个大学是华南地区唯一一所医药大学</p> </div> </div> <div class="item "> <img src="../images/carousel2.jpg" alt="2"> <div class="carousel-caption"></div> </div> <div class="item "> <img src="../images/carousel2.jpg" alt="3"> <div class="carousel-caption"></div> </div> </div> <!--左右滑动图标--> <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left" ></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> </div>
相关文章推荐
- 轻松实现Bootstrap图片轮播
- 基于bootstrap实现广告轮播带图片和文字效果
- 57-001-1 bootstrap实现图片轮播效果
- 五滴水:使用Ajax+jQuery来实现前端收到的数据在console上显示+简单的主页设计与bootstrap插件实现图片轮播
- 基于Bootstrap实现图片轮播效果
- bootstrap实现图片自动轮播
- bootstrap实现图片轮播
- bootstrap下 图片轮播的实现
- 基于Bootstrap框架的图片轮播实现
- Bootstrap图片旋转轮播的实现
- bootstrap实现图片自动轮播
- 手机端实现Bootstrap简单图片轮播效果
- 使用onethink和bootstrap实现首页上的图片轮播和图片采用自后台
- JS组件Bootstrap实现图片轮播效果
- 轻松实现Bootstrap图片轮播
- AngularJS+ui.bootstrap实现图片轮播
- bootstrap实现图片自动轮播
- [转]JQuery实现图片轮播效果
- 图片轮播的jsp代码实现
- 网页Flash实现图片轮播特效