第十篇BootStrap輪播插件使用詳解
Bootstrap 輪播插件是一種靈活的響應(yīng)式的向站點添加滑塊的方式。除此之外,內(nèi)容也是足夠靈活的,可以是圖像、內(nèi)嵌框架、視頻或者其他您想要放置的任何類型的內(nèi)容。
使用bootstrap的輪播插件可以向站點添加滑塊,內(nèi)容可以是圖像,內(nèi)嵌框架,視頻或其它任何內(nèi)容,使用輪播插件需要引入bootstrap.min.js.
先給大家展示下效果圖,如果大家感覺還不錯,請參考實現(xiàn)代碼。
效果圖如下所示:

關(guān)鍵代碼如下:
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> <!—輪播導(dǎo)航 --> <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> <!—輪播項目 --> <div class="carousel-inner" role="listbox"> <div class="item active"> <img src="~/images/Chrysanthemum.jpg" /> <div class="carousel-caption"> ffffffff </div> </div> <div class="item"> <img src="~/images/Desert.jpg" /> <div class="carousel-caption"> xxxxxxxxxxxxxxxx </div> </div> <div class="item"> <img src="~/images/Lighthouse.jpg" /> <div class="carousel-caption"> mmmmmmmmmmmm </div> </div> </div> <!—輪播導(dǎo)航 --> <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></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"></span> <span class="sr-only">Next</span> </a> </div>
以上所述是小編給大家介紹的第十篇BootStrap輪播插件使用詳解的全部敘述,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!
- jQuery簡單自定義圖片輪播插件及用法示例
- jQuery自適應(yīng)輪播圖插件Swiper用法示例
- jQuery的圖片輪播插件PgwSlideshow使用詳解
- Bootstrap 最常用的JS插件系列總結(jié)(圖片輪播、標(biāo)簽切換等)
- Bootstrap輪播插件中圖片變形的終極解決方案 使用jqthumb.js
- BootStrap 輪播插件(carousel)支持左右手勢滑動的方法(三種)
- jQuery插件實現(xiàn)圖片輪播特效
- jQuery圖片輪播插件——前端開發(fā)必看
- jquery插件tytabs.jquery.min.js實現(xiàn)漸變TAB選項卡效果
- 簡單的漸變輪播插件
相關(guān)文章
基于JavaScript實現(xiàn)購物網(wǎng)站商品放大鏡效果
大家在日常生活中都有網(wǎng)購的經(jīng)驗,有的網(wǎng)站會有商品放大鏡功能,效果非常棒,那么基于js代碼是如何實現(xiàn)的呢?下面小編給大家?guī)砹嘶趈s實現(xiàn)購物網(wǎng)站商品放大鏡效果,非常不錯,感興趣的朋友參考下吧2016-09-09
詳解webpack之圖片引入-增強的file-loader:url-loader
這篇文章主要介紹了詳解webpack之圖片引入-增強的file-loader:url-loader,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2018-10-10
javascript實現(xiàn) 在光標(biāo)處插入指定內(nèi)容
javascript實現(xiàn) 在光標(biāo)處插入指定內(nèi)容...2007-05-05
webpack-url-loader 解決項目中圖片打包路徑問題
這篇文章主要介紹了webpack-url-loader 解決項目中圖片打包路徑問題,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2019-02-02

