Bootstrap基本組件學(xué)習(xí)筆記之進(jìn)度條(15)
Bootstrap提供了各式各樣的進(jìn)度條。
看下面的例子:
<!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="../../css/bootstrap.min.css" rel="stylesheet"> <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script> <script src="../../js/bootstrap.min.js"></script> <title>進(jìn)度條</title> </head> <body> <div> <div class="container"> <div class="page-header"> <h1>進(jìn)度條</h1> </div> <div class="col-lg-10"> <div class="progress"> <div class="progress-bar progress-bar-info" style="width: 20%">progress-bar-info(20%)</div> </div> <div class="progress"> <div class="progress-bar progress-bar-success" style="width: 60%">progress-bar-success(60%)</div> </div> <div class="progress"> <div class="progress-bar progress-bar-danger" style="width: 35%">progress-bar-danger(35%)</div> </div> <div class="progress"> <div class="progress-bar progress-bar-warning" style="width: 90%">progress-bar-warning(90%)</div> </div> <div class="progress active"> <div class="progress-bar progress-bar-striped" style="width: 66%">progress-bar-striped(66%)</div> </div> <div class="progress"> <div class="progress-bar progress-bar-warning" style="width: 35%">progress-bar-warning(35%)</div> <div class="progress-bar progress-bar-danger" style="width: 25%">progress-bar-danger(25%)</div> <div class="progress-bar progress-bar-info" style="width: 30%">progress-bar-info(30%)</div> </div> </div> </div> </div> </body> </html>
效果如下:

其中下面的一段產(chǎn)生了動(dòng)態(tài)效果:
<div class="progress active"> <div class="progress-bar progress-bar-striped" style="width: 66%">progress-bar-warning(66%)</div> </div>
下面一段產(chǎn)生了疊加效果:
<div class="progress"> <div class="progress-bar progress-bar-warning" style="width: 35%">progress-bar-warning(35%)</div> <div class="progress-bar progress-bar-danger" style="width: 25%">progress-bar-danger(25%)</div> <div class="progress-bar progress-bar-info" style="width: 30%">progress-bar-info(30%)</div> </div>
如果大家還想深入學(xué)習(xí),可以點(diǎn)擊這里進(jìn)行學(xué)習(xí),再為大家附3個(gè)精彩的專題:
本文系列教程整理到:Bootstrap基礎(chǔ)教程 專題中,歡迎點(diǎn)擊學(xué)習(xí)。
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
- Bootstrap每天必學(xué)之進(jìn)度條
- Bootstrap進(jìn)度條組件知識(shí)詳解
- BootStrap Progressbar 實(shí)現(xiàn)大文件上傳的進(jìn)度條的實(shí)例代碼
- BootStrap初學(xué)者對(duì)彈出框和進(jìn)度條的使用感覺
- BootStrap 實(shí)現(xiàn)各種樣式的進(jìn)度條效果
- 有趣的bootstrap走動(dòng)進(jìn)度條
- bootstrap多種樣式進(jìn)度條展示
- BootStrap組件之進(jìn)度條的基本用法
- Bootstrap源碼學(xué)習(xí)筆記之bootstrap進(jìn)度條
- Bootstrap進(jìn)度條實(shí)現(xiàn)代碼解析
相關(guān)文章
js實(shí)現(xiàn)日期顯示的一些操作(實(shí)例講解)
下面小編就為大家?guī)硪黄猨s實(shí)現(xiàn)日期顯示的一些操作(實(shí)例講解)。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧2017-07-07
JS去掉字符串末尾的標(biāo)點(diǎn)符號(hào)及刪除最后一個(gè)字符的方法
這篇文章主要介紹了JS去掉字符串末尾的標(biāo)點(diǎn)符號(hào)及刪除最后一個(gè)字符的方法,需要的朋友可以參考下2017-10-10
bootstrap模態(tài)框遠(yuǎn)程示例代碼分享
這篇文章主要為大家詳細(xì)介紹了bootstrap模態(tài)框遠(yuǎn)程示例代碼,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2017-05-05
JS控制鼠標(biāo)拒絕點(diǎn)擊某一按鈕的實(shí)例
下面小編就為大家分享一篇JS控制鼠標(biāo)拒絕點(diǎn)擊某一按鈕的實(shí)例,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過來看看吧2017-12-12
JS實(shí)現(xiàn)基本的網(wǎng)頁(yè)計(jì)算器功能示例
這篇文章主要介紹了JS實(shí)現(xiàn)基本的網(wǎng)頁(yè)計(jì)算器功能,涉及JavaScript事件響應(yīng)及數(shù)值運(yùn)算相關(guān)操作技巧,需要的朋友可以參考下2020-01-01
通過一次報(bào)錯(cuò)詳細(xì)談?wù)凱oint事件
這篇文章主要給大家介紹了關(guān)于如何通過一次報(bào)錯(cuò)詳細(xì)談?wù)凱oint事件的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面來一起學(xué)習(xí)學(xué)習(xí)吧2018-05-05
JavaScript實(shí)現(xiàn)全選或反選功能
這篇文章主要為大家詳細(xì)介紹了JavaScript實(shí)現(xiàn)全選或反選功能,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2021-08-08
JS和Canvas實(shí)現(xiàn)圖片的預(yù)覽壓縮和上傳功能
這篇文章主要介紹了JS和Canvas實(shí)現(xiàn)圖片的預(yù)覽壓縮和上傳功能,實(shí)現(xiàn)此功能大概有兩步,第一步用戶選擇需要上傳的圖片,第二步獲取圖片資源壓縮預(yù)覽上傳,具體實(shí)現(xiàn)代碼大家參考下本文2018-03-03
JavaScript設(shè)置FieldSet展開與收縮
JavaScript設(shè)置FieldSet展開與收縮實(shí)現(xiàn)代碼。2009-05-05

