Bootstrap輪播插件簡單使用方法介紹
本文細(xì)致的為大家分享了Bootstrap輪播插件簡單實(shí)例,供大家參考,具體內(nèi)容如下
使用Bootstrap的輪播插件可以向站點(diǎn)添加滑塊,內(nèi)容可以是圖像,內(nèi)嵌框架,視頻或其它任何內(nèi)容,使用輪播插件需要引入
效果圖:

bootstrap.min.js.
<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> <!—輪播項(xiàng)目 --> <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圖片輪播效果
如果大家還想深入學(xué)習(xí),可以點(diǎn)擊這里進(jìn)行學(xué)習(xí),再為大家附一個(gè)精彩的專題:Bootstrap學(xué)習(xí)教程
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
相關(guān)文章
javascript全局變量封裝模塊實(shí)現(xiàn)代碼
javascript全局變量封裝模塊的應(yīng)用,本文將詳細(xì)介紹,需要了解更多的朋友可以參考下2012-11-11
24行JavaScript代碼實(shí)現(xiàn)Redux的方法實(shí)例
這篇文章主要給大家介紹了關(guān)于如何利用24行JavaScript代碼實(shí)現(xiàn)Redux的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),對大家學(xué)習(xí)或者使用JavaScript具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面來一起學(xué)習(xí)學(xué)習(xí)吧2019-11-11
詳解Python中l(wèi)ogging日志模塊在多進(jìn)程環(huán)境下的使用
許多應(yīng)用程序中都會有日志模塊,用于記錄系統(tǒng)在運(yùn)行過程中的一些關(guān)鍵信息,以便于對系統(tǒng)的運(yùn)行狀況進(jìn)行跟蹤。這篇文章給大家主要介紹了在Python中l(wèi)ogging日志模塊在多進(jìn)程環(huán)境下的使用,需要的朋友可以參考借鑒,下面來一起看看吧。2016-12-12
javascript實(shí)現(xiàn)多級聯(lián)動下拉菜單的方法
這篇文章主要介紹了javascript實(shí)現(xiàn)多級聯(lián)動下拉菜單的方法,通過javascript自定義函數(shù)實(shí)現(xiàn)對多級聯(lián)動下拉菜單的操作,是非常實(shí)用的技巧,需要的朋友可以參考下2015-02-02

