码迷,mamicode.com
首页 > 其他好文 > 详细

bootstrap 轮播插件

时间:2014-06-03 06:54:19      阅读:276      评论:0      收藏:0      [点我收藏+]

标签:c   style   class   blog   code   java   

       在公司实习无聊中。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html>
<head>
  <title>toggle</title>
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="stylesheet" href="css/bootstrap.min.css" media="screen">
  <style type="text/css">
    #myCarousel{
        margin:0 auto;
        width:500px;
    }
  </style>
</head>
<body>
   <div id="myCarousel" class="carousel slide">
       <ol class="carousel-indicators">
         <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
         <li data-target="#myCarousel" data-slide-to="1"></li>
         <li data-target="#myCarousel" data-slide-to="2"></li>
       </ol>
       <div class="carousel-inner">
          <div class="active item"><img src="images/1.jpg" /></div>
          <div class="item" ><img src="images/2.jpg"/></div>
          <div class="item" ><img src="images/3.jpg"/></div>
          <div class="item" ><img src="images/4.jpg"/></div>
          <div class="item" ><img src="images/5.jpg"/></div>
       </div>
       <a class="carousel-control left" href="#myCarousel" data-slide="prev">?</a>
       <a class="carousel-control right" href="#myCarousel" data-slide="next">?</a>
  </div>
<script src="scripts/jquery-1.10.2.js"></script>
<script src="scripts/bootstrap.min.js"></script>
</body>
</html>

  bubuko.com,布布扣

bootstrap 轮播插件,布布扣,bubuko.com

bootstrap 轮播插件

标签:c   style   class   blog   code   java   

原文地址:http://www.cnblogs.com/xshang/p/3760686.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!