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

bootstrap實(shí)現(xiàn)圖片自動輪播

 更新時(shí)間:2016年12月21日 08:39:47   作者:Wake_me_Up123  
這篇文章主要為大家詳細(xì)介紹了bootstrap實(shí)現(xiàn)圖片自動輪播,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下

bootstrap圖片自動輪播效果圖:

代碼實(shí)現(xiàn):

<!DOCTYPE html>
<html lang="zh-CN">
<head>
 <link rel="stylesheet" href="bootstrap.min.css" />
 <link rel="stylesheet" href="bootstrap-theme.min.css" />
 <script src="jquery.min.js"></script>
 <script src="bootstrap.min.js"></script>
 <style>
 #div1 {width:600px; height:500px}
 </style>
</head>
<body>
 <div id="div1">
 <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
 <!-- Indicators -->
 <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>

 <!-- Wrapper for slides -->
 <div class="carousel-inner" role="listbox">
 <div class="item active">
 <img src="airplane1.jpg" >
 </div>
 <div class="item">
 <img src="airplane2.jpg" >
 </div>
 <div class="item">
 <img src="airplane3.jpg" >
 </div>
 </div>

 <!-- Controls -->
 <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
 <span class="glyphicon glyphicon-chevron-left" id="aaron1"></span>
 <span class="sr-only">Previous</span>
 </a>
 <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
 <span class="glyphicon glyphicon-chevron-right" id="aaron2"></span>
 <span class="sr-only">Next</span>
 </a>
 </div>
 </div>
</body>
<html>

精彩專題分享:jQuery圖片輪播 JavaScript圖片輪播

如果大家還想深入學(xué)習(xí),可以點(diǎn)擊這里進(jìn)行學(xué)習(xí),再為大家附3個(gè)精彩的專題:

Bootstrap學(xué)習(xí)教程

Bootstrap實(shí)戰(zhàn)教程

Bootstrap Table使用教程

Bootstrap插件使用教程

以上代碼可以實(shí)現(xiàn) div1 中的圖片自動輪播,輪播時(shí)間默認(rèn)5000ms。

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

相關(guān)文章

最新評論

怀柔区| 兴安盟| 伊川县| 绍兴县| 咸阳市| 武义县| 嫩江县| 进贤县| 登封市| 宾阳县| 武宣县| 安化县| 武穴市| 长乐市| 阳山县| 莱阳市| 庄河市| 镇远县| 西畴县| 长寿区| 定南县| 嘉义县| 兴仁县| 泗阳县| 夏河县| 桂林市| 怀仁县| 保亭| 苍山县| 延安市| 成都市| 麦盖提县| 杭锦后旗| 江津市| 文成县| 和平区| 湘阴县| 三穗县| 乌兰察布市| 江川县| 梅河口市|