轮播请查看下面演示样例。基本已经涵盖最经常使用的一个轮播

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>js插件_轮播</title>
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
<!--<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">-->
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<style type="text/css">
.myCarousel{
width:50%;
}
</style>
</head>
<body>
<div class="container myCarousel">
<div id="carousel-example-generic" class="carousel slide">
<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">
<div class="item active">
<img src="images/1.jpg"/>
<div class="carousel-caption">
<h3>宅男女神1</h3>
<p>人气偶像票选890张</p>
</div>
</div>
<div class="item">
<img src="images/2.jpg"/>
<div class="carousel-caption">
<h3>宅男女神2</h3>
<p>人气偶像票选1234张</p>
</div>
</div>
<div class="item">
<img src="images/3.jpg"/>
<div class="carousel-caption">
<h3>宅男女神3</h3>
<p>人气偶像票选7836张</p>
</div>
</div>
</div>
<a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
</div>
<script>
//设置图片切换时间,默认是5秒;
$(".carousel").carousel({
interval:2000
})
</script> </body>
</html>

最新文章

  1. Android--短信
  2. cookie&amp;session&amp;servletContext
  3. 2014 Multi-University Training Contest 1
  4. Metasploit连接postgres数据库
  5. 使用 cURL 获取站点的各类响应时间 – dns解析时间,响应时间,传输时间
  6. iReport —— 使用 JavaBean 作为数据源
  7. 第二篇、C_递归算法
  8. 使用activeMQ实现jms
  9. MSSQL 修改数据库的排序规则
  10. CentOS6.5安全策略设置
  11. 安卓ndk 忽略 error: undefined reference to &#39;找不到符号
  12. Integer判等的陷阱:你知道Integer内部高速缓冲区IntegerCache吗?
  13. Android 颜色透明度换算
  14. [BZOJ3080]Minimum Variance Spanning Tree/[BZOJ3754]Tree之最小方差树
  15. Spring.NET依赖注入框架学习--简单对象注入
  16. 在Matlab中安装使用libsvm详细步骤(附图)
  17. ABP集成WIF实现单点登录
  18. 代理神器allproxy
  19. Ubuntu apt-get 彻底卸载软件包
  20. GitHub设置使用SSH Key,用TortoiseGit进行Clone仓库

热门文章

  1. CSS3快速浏览器前缀的方法
  2. Hadoop之Mapreduce详解
  3. angular 中的$event 对象包含了浏览器原生的event对象
  4. 2017.7.7 在eclipse中快速查找类:ctrl+shift+T
  5. Elasticsearch教程(七) elasticsearch Insert 插入数据(Java)
  6. liunx下安装第三方Python(PIP安装)
  7. Velocity.js动画库使用
  8. UVA 10679 I love Strings!!!(AC自己主动机)
  9. 改变datagrid中指定单元格的值
  10. 使用itchat分析自己的微信(1)