<!--
1.写一个父级,class为carousel
slide:添加滑动的效果
data-interval 图片轮播间隔时间,单位ms
data-ride="carousel" 页面一加载后就开始播放
2.小圆点的内容放在class为carousel-indicators的层里
3.轮播图的图片区域放在class为carousel-inner的层里
每一项内容添加class为item的层
图片说明文字放在class为carousel-caption的层里
4. 左右按钮 a链接 class为carousel-control left/right
锚点指向父级
-->
<div class="container">
<div id="pic" class="carousel slide" data-interval="3000" data-ride="carousel" style="width:510px;margin:0 auto;">
<!-- 小圆点 -->
<ol class="carousel-indicators">
<li class=" active"></li>
<li></li>
<li></li>
<li></li>
</ol>
<!--轮播图的图片 -->
<div class="carousel-inner">
<div class="item active">
<img src="a.jpg" />
<div class="carousel-caption">
<h3>小孩子1</h3>
</div>
</div>
<div class="item">
<img src="b.jpg" />
<div class="carousel-caption">
<h3>小孩子2</h3>
</div>
</div>
<div class="item">
<img src="c.jpg" />
<div class="carousel-caption">
<h3>美女</h3>
</div>
</div>
<div class="item">
<img src="d.jpg" />
<div class="carousel-caption">
<h3>海贼王</h3>
</div>
</div>
</div>
<!-- 左右按钮-->
<a href="#pic" class="carousel-control left" data-slide="prev">
<span class="glyphicon glyphicon glyphicon-chevron-left"></span>
</a>
<a href="#pic" class="carousel-control right" data-slide="next">
<span class="glyphicon glyphicon glyphicon-chevron-right"></span>
</a>
</div>
</div>

效果:

bootstrap-轮播图的更多相关文章

  1. bootstrap轮播图 两侧半透明阴影

    用bootstrap轮播图:Carousel插件,图片两侧影音实在碍眼,想去掉,首先发现有css里由opacity: 0.5这个东西来控制,全部改成opacity: 0.0,发现指示箭头也看不见了. ...

  2. Bootstrap 轮播图的使用和理解

    <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8& ...

  3. bootstrap轮播图--兼容IE7

    <!DOCTYPE html> <html> <head> <title>Bootstrap轮播</title> <meta char ...

  4. 动态请求数据并放入bootstrap轮播图

    下面是前端代码: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> < ...

  5. 第124天:移动web端-Bootstrap轮播图插件使用

    Bootstrap JS插件使用 > 对于Bootstrap的JS插件,我们只需要将文档实例中的代码粘到我们自己的代码中> 然后作出相应的样式调整 Bootstrap中轮播图插件叫作Car ...

  6. bootstrap轮播图组件

    一.轮播图组件模板(官方文档) <div id="carousel-example-generic" class="carousel slide" dat ...

  7. bootstrap轮播图

    <!doctype html><html><head> <meta charset="utf-8"> <title>使用 ...

  8. Bootstrap 轮播图(Carousel)插件

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  9. bootstrap轮播图不能显示左右箭头

    引入font文件夹即可 原文 :http://www.imooc.com/qadetail/64277

  10. Bootstrap 我的学习记录4 轮播图的使用和理解

    <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8& ...

随机推荐

  1. linux getch()实现

    #include <termio.h> int getch(void){     struct termios tm, tm_old;     int fd = 0, ch;       ...

  2. Java in a Nutshell学习笔记

    1, bytecode永远是大段 2,其它语言要在java里运行,要么实现类似于javac的编译器,把该语言解释成为class文件.要么,直接重新实现JVM,直接解释该语言3,Java和C++区别: ...

  3. android贪吃蛇(超级简陋版)

    public class body { public int ax;//代表X周变量 public int ay;//代表Y轴变量 public int getAx() { return ax; } ...

  4. sqoop连接oracle与mysql&mariadb的错误

    错误说明: 由于我的hadoop的集群是用cloudera manager在线自动安装的,因此他们的安装路径必须遵循cloudera的规则,这里只有查看cloudera的官方文档了,请参考:http: ...

  5. ntlk_data安装小结

    <Python自然语言处理>用nltk.download()的方法安装书中所用语料库数据,不太好使.一是部分网友反映的下载很慢很慢,二是下载链接,无论书上.NLTK官网(http://nl ...

  6. 生日蛋糕—dfs

    Description 7月17日是Mr.W的生日,ACM-THU为此要制作一个体积为Nπ的M层生日蛋糕,每层都是一个圆柱体. 设从下往上数第i(1 <= i <= M)层蛋糕是半径为Ri ...

  7. Javascript 事件对象(二)event事件

    Event事件: <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" ...

  8. 金浪网关ESR-6400G 告警解决办法

    防火墙中提示为每秒新建连接数大于设定范围,自动断开改IP两分钟 解决办法:更换MAC地址与IP地址 下图是防火墙设置

  9. bigworld源码分析(5)——BaseApp分析

    BaseApp负载部分,核心代码缺失...网上的源码中都找不到,暂时没办法分析其核心内容,很遗憾,继续寻找吧,等找到了,再继续自己的分析.

  10. Anchor 对象和document对象

    <script type="text/javascript"> function chanklink(){ document.getElementById(" ...