BootStrap 實(shí)現(xiàn)各種樣式的進(jìn)度條效果
Bootstrap提供了各式各樣的進(jìn)度條效果,下面通過實(shí)例代碼給大家詳細(xì)介紹,具體詳情如下所示:
看下面的例子:
<!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>
以上所述是小編給大家介紹的BootStrap 實(shí)現(xiàn)各種樣式的進(jìn)度條效果,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!
- spring MVC + bootstrap實(shí)現(xiàn)文件上傳示例(帶進(jìn)度條)
- BootStrap Progressbar 實(shí)現(xiàn)大文件上傳的進(jìn)度條的實(shí)例代碼
- Bootstrap fileinput文件上傳預(yù)覽插件使用詳解
- BootStrap fileinput.js文件上傳組件實(shí)例代碼
- Bootstrap文件上傳組件之bootstrap fileinput
- JS文件上傳神器bootstrap fileinput詳解
- Bootstrap自定義文件上傳下載樣式
- 基于BootStrap Metronic開發(fā)框架經(jīng)驗(yàn)小結(jié)【五】Bootstrap File Input文件上傳插件的用法詳解
- BootStrap實(shí)現(xiàn)文件上傳并帶有進(jìn)度條效果
相關(guān)文章
用JS實(shí)現(xiàn)網(wǎng)頁元素陰影效果的研究總結(jié)
用JS實(shí)現(xiàn)網(wǎng)頁元素陰影效果的研究總結(jié)...2007-08-08
Echarts圖表分析巴西隊(duì)歷年戰(zhàn)績實(shí)例詳解
這篇文章主要為大家介紹了Echarts圖表分析巴西隊(duì)歷年戰(zhàn)績實(shí)例詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2022-12-12
js中使用replace方法完成某個(gè)字符的轉(zhuǎn)換
這篇文章主要介紹了js中使用replace方法完成某個(gè)字符的轉(zhuǎn)換,比較實(shí)用,需要的朋友可以參考下2014-08-08
BootStrap自定義popover,點(diǎn)擊區(qū)域隱藏功能的實(shí)現(xiàn)
下面小編就為大家分享一篇BootStrap自定義popover,點(diǎn)擊區(qū)域隱藏功能的實(shí)現(xiàn)方法,具有很好的參考價(jià)值,希望對大家有所幫助。一起跟隨小編過來看看吧2018-01-01
JS實(shí)現(xiàn)頁面數(shù)據(jù)懶加載
這篇文章主要為大家詳細(xì)介紹了JS實(shí)現(xiàn)頁面數(shù)據(jù)懶加載,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2020-02-02
JavaScript?Array.from及其相關(guān)用法詳解(示例演示)
Array.from方法是ES6引入的一個(gè)靜態(tài)方法,用于從類數(shù)組對象或可迭代對象創(chuàng)建一個(gè)新的數(shù)組實(shí)例,本文將詳細(xì)介紹Array.from的基本用法、實(shí)際場景中的應(yīng)用,以及它如何與其他JavaScript特性相結(jié)合提升代碼的簡潔性和可讀性,感興趣的朋友一起看看吧2025-03-03
用Javascript做flash做的事..才完成的一個(gè)類.Auntion Action var 0.1
用Javascript做flash做的事..才完成的一個(gè)類.Auntion Action var 0.1...2007-02-02

