欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

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

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

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

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

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

輪播圖代碼實(shí)現(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>

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

  • JavaScript如何通過userAgent判斷幾個(gè)常用瀏覽器詳解

    JavaScript如何通過userAgent判斷幾個(gè)常用瀏覽器詳解

    userAgent 屬性是一個(gè)只讀的字符串,聲明了瀏覽器用于 HTTP 請(qǐng)求的用戶代理頭的值,這篇文章主要給大家介紹了關(guān)于JavaScript如何通過userAgent判斷幾個(gè)常用瀏覽器的相關(guān)資料,需要的朋友可以參考下
    2021-06-06
  • 在?TypeScript?中使用泛型的方法

    在?TypeScript?中使用泛型的方法

    這篇文章主要介紹了在TypeScript中使用泛型的方法,泛型是靜態(tài)類型語言的基本特征,允許將類型作為參數(shù)傳遞給另一個(gè)類型、函數(shù)、或者其他結(jié)構(gòu)
    2022-06-06
  • 詳解JavaScript中扁平與樹形數(shù)據(jù)的轉(zhuǎn)換

    詳解JavaScript中扁平與樹形數(shù)據(jù)的轉(zhuǎn)換

    這篇文章主要為大家想介紹了JavaScript中實(shí)現(xiàn)扁平與樹形數(shù)據(jù)相互轉(zhuǎn)換的方法,文中的示例代碼講解詳細(xì),對(duì)我們學(xué)習(xí)JavaScript有一定的幫助,需要的可以參考一下
    2023-01-01
  • TypeScript聯(lián)合類型,交叉類型和類型保護(hù)

    TypeScript聯(lián)合類型,交叉類型和類型保護(hù)

    這篇文章主要介紹了TypeScript聯(lián)合類型,交叉類型和類型保護(hù),聯(lián)合類型就是定義一些類型,定義的變量只需要滿足任意一種類型即可,交叉類型就是需要滿足所有類型,交叉類型使用,更多內(nèi)容我們來看看下面文章詳細(xì)內(nèi)容吧
    2021-12-12
  • javascript中 try catch用法

    javascript中 try catch用法

    JS try catch語句一般在什么情況下使用?是必須使用的嗎?下面就讓小編來給大家介紹一下試用心得。
    2015-08-08
  • JS自定義混合Mixin函數(shù)示例

    JS自定義混合Mixin函數(shù)示例

    這篇文章主要介紹了JS自定義混合Mixin函數(shù),涉及javascript面向?qū)ο蟪绦蛟O(shè)計(jì)中函數(shù)與屬性操作相關(guān)技巧,需要的朋友可以參考下
    2016-11-11
  • 一文搞懂webpack?hash持久化的原理

    一文搞懂webpack?hash持久化的原理

    本文主要介紹了webpack?hash持久化的原理,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2022-06-06
  • Js 冒泡事件阻止實(shí)現(xiàn)代碼

    Js 冒泡事件阻止實(shí)現(xiàn)代碼

    當(dāng)一個(gè)元素上的事件被觸發(fā)的時(shí)候,比如說鼠標(biāo)點(diǎn)擊了一個(gè)按鈕,同樣的事件將會(huì)在那個(gè)元素的所有祖先元素中被觸發(fā)
    2013-01-01
  • 為網(wǎng)站代碼塊pre標(biāo)簽增加一個(gè)復(fù)制代碼按鈕代碼

    為網(wǎng)站代碼塊pre標(biāo)簽增加一個(gè)復(fù)制代碼按鈕代碼

    寫文章的時(shí)候,作為一名專業(yè)的碼農(nóng),經(jīng)常會(huì)在文章中粘貼一些代碼。有的時(shí)候代碼塊比較長(zhǎng),在后期使用中需要復(fù)制這段代碼就比較麻煩
    2021-11-11
  • ES6 Promise對(duì)象概念及用法實(shí)例詳解

    ES6 Promise對(duì)象概念及用法實(shí)例詳解

    這篇文章主要介紹了ES6 Promise對(duì)象概念及用法,結(jié)合實(shí)例形式詳細(xì)分析了ES6中Promise對(duì)象的概念、原理、創(chuàng)建、使用方法及相關(guān)操作注意事項(xiàng),需要的朋友可以參考下
    2019-10-10

最新評(píng)論