国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發(fā) > JS > 正文

Bootstrap學習筆記 輪播(Carousel)插件

2024-05-06 16:36:06
字體:
來源:轉載
供稿:網(wǎng)友

Bootstrap 輪播(Carousel)插件是一種靈活的響應式的向站點添加滑塊的方式。除此之外,內(nèi)容也是足夠靈活的,可以是圖像、內(nèi)嵌框架、視頻或者其他您想要放置的任何類型的內(nèi)容。如果您想要單獨引用該插件的功能,那么您需要引用 carousel.js,或者bootstrap.js 或壓縮版的 bootstrap.min.js。

<!DOCTYPE html> <html>  <head>  <title>Bootstrap 輪播(Carousel)插件</title>  <meta charset="utf-8">  <link rel="stylesheet" href="css/bootstrap.min.css" rel="external nofollow" >  <link rel="stylesheet" href="css/carousel.css" rel="external nofollow" >  <script src="js/jquery.min.js"></script>  <script src="js/bootstrap.min.js"></script>  </head>  <body>  <!-- Carousel  ================================================== -->  <div id="myCarousel" class="carousel slide" data-ride="carousel">  <!-- Indicators -->  <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" role="listbox">  <div class="item active">  <img class="first-slide" src="http://localhost:8020/BootStrap/img/slide1.png" <div class="container">  <div class="carousel-caption">  <h1>Example headline.</h1>  <p>  Note: If you're viewing this page via a <code>   file://</code>  URL, the "next" and "previous" Glyphicon buttons on the left and right might not load/display properly due to web browser security rules.  </p>  <p>  <a class="btn btn-lg btn-primary" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="button">Sign up today</a>  </p>  </div>  </div>  </div>  <div class="item">  <img class="second-slide" src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" <div class="container">  <div class="carousel-caption">  <h1>Another example headline.</h1>  <p>  Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.  </p>  <p>  <a class="btn btn-lg btn-primary" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="button">Learn more</a>  </p>  </div>  </div>  </div>  <div class="item">  <img class="third-slide" src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" <div class="container">  <div class="carousel-caption">  <h1>One more for good measure.</h1>  <p>  Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.  </p>  <p>  <a class="btn btn-lg btn-primary" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="button">Browse gallery</a>  </p>  </div>  </div>  </div>  </div>  <!--左前進右后退-->  <a class="left carousel-control" href="#myCarousel" rel="external nofollow" rel="external nofollow" role="button" data-slide="prev">  <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>  <span class="sr-only">Previous</span>  </a>  <a class="right carousel-control" href="#myCarousel" rel="external nofollow" rel="external nofollow" role="button" data-slide="next">  <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>  <span class="sr-only">Next</span>  </a>  </div>  <!-- /.carousel -->  </body> </html> 

注意:

<img class="second-slide" src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" src="/uploads/allimg/170321/2055402a5-0.jpg" />

以上所述是小編給大家介紹的Bootstrap學習筆記 輪播(Carousel)插件,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對VeVb武林網(wǎng)網(wǎng)站的支持!


注:相關教程知識閱讀請移步到JavaScript/Ajax教程頻道。
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 岑巩县| 太仆寺旗| 福安市| 固安县| 华安县| 盐亭县| 塔河县| 台前县| 托克逊县| 德兴市| 新宾| 阜平县| 仪征市| 宁明县| 汉川市| 淮阳县| 武城县| 嘉荫县| 鹤岗市| 桃园县| 平湖市| 建始县| 龙江县| 通许县| 丽水市| 乌拉特中旗| 连山| 屯留县| 舞阳县| 辽阳县| 阿城市| 洛阳市| 营口市| 临汾市| 乌兰浩特市| 惠州市| 皮山县| 嘉定区| 南雄市| 德令哈市| 龙门县|