bootstrap-轮播图
<!--
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-轮播图的更多相关文章
- bootstrap轮播图 两侧半透明阴影
用bootstrap轮播图:Carousel插件,图片两侧影音实在碍眼,想去掉,首先发现有css里由opacity: 0.5这个东西来控制,全部改成opacity: 0.0,发现指示箭头也看不见了. ...
- Bootstrap 轮播图的使用和理解
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8& ...
- bootstrap轮播图--兼容IE7
<!DOCTYPE html> <html> <head> <title>Bootstrap轮播</title> <meta char ...
- 动态请求数据并放入bootstrap轮播图
下面是前端代码: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> < ...
- 第124天:移动web端-Bootstrap轮播图插件使用
Bootstrap JS插件使用 > 对于Bootstrap的JS插件,我们只需要将文档实例中的代码粘到我们自己的代码中> 然后作出相应的样式调整 Bootstrap中轮播图插件叫作Car ...
- bootstrap轮播图组件
一.轮播图组件模板(官方文档) <div id="carousel-example-generic" class="carousel slide" dat ...
- bootstrap轮播图
<!doctype html><html><head> <meta charset="utf-8"> <title>使用 ...
- Bootstrap 轮播图(Carousel)插件
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- bootstrap轮播图不能显示左右箭头
引入font文件夹即可 原文 :http://www.imooc.com/qadetail/64277
- Bootstrap 我的学习记录4 轮播图的使用和理解
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8& ...
随机推荐
- JavaScript对象中的属性(可写,可配置,可枚举,value,getter,setter)
JavaScript中,对象包括3个特性,分别为,可扩展性,class标识符,属性. 如果对象的可扩展性为false,则不可为对象动态的添加属性. 对象包含分为存取器属性和值属性.存取属性为 {g ...
- ubuntu13.04 nfs配置
开发板和主机之间共享文件,常常需要配置nfs服务: 服务器端安装:root#:apt-get install nfs-common root#:apt-get install nfs-kernel-s ...
- Certificate、Provisioning Profile、App ID
关于 Certificate.Provisioning Profile.App ID 的介绍及其之间的关系 2014-03-13 15:26 13416人阅读 评论(1) 收藏 举报 目录(?)[ ...
- MYSQL数据库操作语句
1.创建数据库 CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name [create_specification [, create_specifica ...
- Linux的find命令
使用find命令,可以指定问及那的名称.类别.时间.大小以及权限等,来查找出你想要的文件 语法: fiind [路径] [参数] [-print] 参数详解: 1.-name 按照文件名查找文件 ...
- 期望DP
BZOJ 1415 #include <iostream> #include <cstring> #include <algorithm> #include < ...
- cocos2dx 3.0 之 lua 创建类
利用3.0里面封装好的模板类来写,不罗嗦,直接上例子(消除星星小游戏中 星星类) require "extern" StarSprite = class("StarSpr ...
- ASP.NET编程模型之ASP.NET页面生命周期图解
ASP.NET编程模型中ASP.NET页面生命周期是指什么呢?它包括什么呢?ASP.NET编程模型之ASP.NET页面生命周期具体的过程有哪些呢?下面就开始我们的讲解吧: ASP.NET 页运行时,此 ...
- php建立MySQL数据表
<?php $connect = mysql_connect("127.0.0.1","root",""); mysql_select ...
- SPARQL1.1 101 Language and Jena support
1 introduction definition cited from SPARQL 1.1 Overview: SPARQL 1.1 is a set of specifications that ...