最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Bootstrap實現(xiàn)基于carousel.js框架的輪播圖效果

 更新時間:2017年05月02日 10:38:55   作者:成兮  
這篇文章主要為大家詳細介紹了Bootstrap實現(xiàn)基于carousel.js框架的輪播圖效果,無過渡動畫,具有一定的參考價值,感興趣的小伙伴們可以參考一下

本文實例為大家分享了Bootstrap輪播圖效果展示的具體代碼,供大家參考,具體內容如下

聲明式觸發(fā)需要使用到的幾個data-*屬性

1.data-ride:作用在最外層容器上,固定值:carousel
2.data-target:作用在class=carousel-indicators的每個子元素li上面,標注對那個元素進行點擊輪播
3.data-slide:作用在前翻頁和后翻頁的兩個a鏈接上,prev表示前翻頁,next表示后翻頁
4.data-slide-to:作用在class=carousel-indicators的每個子元素li上面,標注對應的li元素對應的圖片動畫幀的下標,從0開始
5.data-interval:輪番圖自動輪播的等待時間,如果為false則不自動輪播,默認為5000ms
6.data-pause:指定鼠標停留在輪換圖上是否停止輪播,離開后繼續(xù)自動輪播
7.data-wrap:指定是否持續(xù)輪播

輪播圖代碼實現(xiàn):

<!Doctype html>
<html>
 <head>
  <title>登錄界面-bootstrap打造前端--美觀高大上-成兮制作</title>

  <!-- meta -->
  <meta http-equiv="viewport" content="width=device-width, initial-scale=1">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

  <!-- ICON Link -->
  <link rel="shorticon" type="image/x-icon" href="Images/webicon.ico" rel="external nofollow" rel="external nofollow" />
  <link rel="icon" type='image/x-icon' href="Images/webicon.ico" rel="external nofollow" rel="external nofollow" />

  <!--Bootstrap CSS Link-->
  <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" rel="external nofollow" />
  <link rel="stylesheet" href="bootstrap/css/bootstrap-theme.css" rel="external nofollow" />

  <!-- Bootstrap JS and JQuery JS Link -->
  <script src="JS/jquery.min.js"></script>
  <script src="bootstrap/js/bootstrap.min.js"></script>

 </head>
 <body>
  <!-- 制作巨幕輪播圖 -->
  <div class="carousel" id="carouselcontainer" data-ride="carousel" style="background-color: rgba(128, 128, 128, 0.42);margin-top: 10%;width: 100%;height:658px;">
   <ol class="carousel-indicators">
    <li class="active" data-target="#carouselcontainer" data-slide-to="0"></li>
    <li data-target="#carouselcontainer" data-slide-to='1'></li>
    <li data-target="#carouselcontainer" data-slide-to="2"></li>
    <li data-target="#carouselcontainer" data-slide-to="3"></li>
   </ol>
   <div class="carousel-inner">
    <div class="item active">
     <a href="javascript:void(0);" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >
      <img src="Images/1.png" title="巨幕輪播圖1" style="width: 100%;height: 658px;" />
     </a>
    </div>
    <div class="item">
     <a href="javascript:void(0);" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >
      <img src="Images/1.jpg" title="巨幕輪播圖2" style="width: 100%;height: 658px;" />
     </a>
    </div>
    <div class="item">
     <a href="javascript:void(0);" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >
      <img src="Images/2.jpg" title="巨幕輪播圖3" style="width: 100%;height: 600px;" />
     </a>
    </div>
    <div class="item">
     <a href="javascript:void(0);" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >
      <img src="Images/3.jpg" title="巨幕輪播圖4" style="width: 100%;height: 600px;" />
     </a>
    </div>
   </div>
   <div class="left carousel-control" href="#carouselcontainer" rel="external nofollow" rel="external nofollow" data-slide="prev">
    <span class="glyphicon glyphicon-chevron-left"></span>
   </div>
   <div class="right carousel-control" href="#carouselcontainer" rel="external nofollow" rel="external nofollow" data-slide="next">
    <span class="glyphicon glyphicon-chevron-right"></span>
   </div>
  </div>
 </body>
</html>

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持腳本之家。

相關文章

最新評論

肃北| 淮南市| 舞阳县| 行唐县| 贵州省| 富宁县| 龙州县| 保亭| 策勒县| 衡水市| 行唐县| 山东省| 东山县| 峡江县| 攀枝花市| 罗山县| 乌恰县| 广元市| 和林格尔县| 偏关县| 诏安县| 兴安盟| 岱山县| 龙泉市| 西藏| 柞水县| 金沙县| 林州市| 呼和浩特市| 清水县| 墨脱县| 萨嘎县| 金阳县| 公主岭市| 台中县| 木里| 太和县| 黄龙县| 泗洪县| 连平县| 西城区|