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& ...
随机推荐
- JQ判断屏幕宽度
<script> if (screen.width < 768){....} </script>
- OC语言构造方法
OC语言构造方法 一.构造方法 (一)构造方法的调用 完整的创建一个可用的对象:Person *p=[Person new]; New方法的内部会分别调用两个方法来完成2件事情,1)使用alloc方法 ...
- wdcp 打开网页显示 Apache 2 Test Page powered by CentOS
是因为更新过系统,安装并更新了系统自带的apache 执行这个命令即可 #ln -sf /www/wdlinux/init.d/httpd /etc/rc.d/init.d/httpd#reboot
- oracle生成行方法
数据库记录是行的集合 set of row, 那么如何如何生成集合呢? oracle中常用的是 递归查询(with ... union all ...) 以及 connect by(树形查询) htt ...
- sql整型字段模糊查询
select count(*) cnt from vhuiy where CAST(id as text) like'%12%'--id为int类型 更详细的链接:http://www.studyof ...
- Android控件— — —ImageView
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android=" ...
- C# .net windows服务启动多个服务 ServiceBase
在windows服务中想要启动多个服务 ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] { // new SyncServ ...
- ibeacon的使用和应用场景简单示例
目的,用ibeacon实现签到功能,不需要太严谨,只是试水. 拿到ibeacon的第一感觉是,这东西能用嘛,2-3年的电池,后面商家说是用个3M双面胶找个地方一贴就行,感觉不太靠谱,嘿嘿,在网上找了一 ...
- Android 学习第11课,android 实现拨打电话的功能
1. 先布局界面,界面采用线性垂直方式来布局 在layout 界面文件中 activity_main.xml 中 <LinearLayout xmlns:android="http:/ ...
- B-Tree算法分析与实现
在数据库系统中,或者说在文件系统中,针对存储在磁盘上的数据读取和在内存中是有非常大的区别的,因为内存针对任意在其中的数据是随机访问的,然而从磁盘中读取数据是需要通过机械的方式来读取一个block,不能 ...