bootstrap 轮播插件

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

<!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>

  

posted @ 2014-05-30 11:02  xshang  阅读(7096)  评论(3编辑  收藏  举报