轮播图 (Bootstrap)
来源:互联网 发布:域名在线评估 编辑:程序博客网 时间:2024/06/03 09:43
效果图如下:
<div class="carousel slide" id="carousel2"> <ol class="carousel-indicators"> <li data-slide-to="0" data-target="#carousel2" class="active"></li> <li data-slide-to="1" data-target="#carousel2"></li> <li data-slide-to="2" data-target="#carousel2" class=""></li> </ol> <div class="carousel-inner"> <div class="item active"> <img alt="image" class="img-responsive" src="img/p_big1.jpg"> <div class="carousel-caption"> <p>This is simple caption 1</p> </div> </div> <div class="item "> <img alt="image" class="img-responsive" src="img/p_big3.jpg"> <div class="carousel-caption"> <p>This is simple caption 2</p> </div> </div> <div class="item"> <img alt="image" class="img-responsive" src="img/p_big2.jpg"> <div class="carousel-caption"> <p>This is simple caption 3</p> </div> </div> </div> <a data-slide="prev" href="carousel.html#carousel2" class="left carousel-control"> <span class="icon-prev"></span> </a> <a data-slide="next" href="carousel.html#carousel2" class="right carousel-control"> <span class="icon-next"></span> </a> </div>
备注:
如果把carousel-caption这个类修改为text-center,效果图变成下面:
备注:
carousel-control 控制左右箭头的显示与否data-slide 控制轮播图的动作carousel-inner 配合item 包含了很多轮播图carousel-indicators 底部的一排圆圈id 具体代表哪个轮播图
FR:海涛高软(QQ技术交流群:386476712)
0 0
- 轮播图 (Bootstrap)
- Bootstrap轮播图
- bootstrap轮播图
- bootstrap轮播图
- (bootstrap)
- bootstrap教程(一)--bootstrap简介
- bootstrap教程(一)--bootstrap简介
- Bootstrap实现网站首页(Bootstrap概述)
- Bootstrap之轮播图
- Bootstrap实战--轮播图
- bootstrap 轮播图基础代码
- BootStrap实现轮播图
- Bootstrap焦点轮播图
- BootStrap简单轮播图
- bootstrap轮播图插件
- Bootstrap 轮播图技巧
- bootstrap实现轮播图
- Bootstrap-轮播图-No.1
- 用SOAPUI测试OSB12C
- JQuery
- 应用思维活动脑电波进行两阶段生物认证的方法(概括)
- PHP实现二维数组按某列进行排序的方法
- Android Studio 中 build.gradle 中 dependencies 下的 comile 后面的内容的来源
- 轮播图 (Bootstrap)
- Java阶段性测试--第二三大题参考代码
- cocos2dx游戏开发学习笔记(三)
- http如何像tcp一样实时的收消息
- dom对象与jquery对象相互转换
- Java8新增日期
- 《Cracking the Coding Interview程序员面试金典》----最长合成字符串
- HttpClient 4.3超时设置
- 武汉工程大学致各位家长及同学们的一封公开信