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)生了動態(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í)。
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
- Bootstrap每天必學(xué)之進(jìn)度條
- Bootstrap進(jìn)度條組件知識詳解
- BootStrap Progressbar 實(shí)現(xiàn)大文件上傳的進(jìn)度條的實(shí)例代碼
- BootStrap初學(xué)者對彈出框和進(jìn)度條的使用感覺
- BootStrap 實(shí)現(xiàn)各種樣式的進(jìn)度條效果
- 有趣的bootstrap走動進(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)即點(diǎn)即編輯功能代碼
以前在網(wǎng)上都看到過類似的功能,不過沒自己想要實(shí)現(xiàn)過,這次剛好做靜態(tài)頁面中有這樣的一個(gè)需求,就試著自己做做看,做完發(fā)現(xiàn)也不是什么很難的事情。2008-10-10javascript 中關(guān)于array的常用方法詳解
這篇文章主要介紹了javascript 中關(guān)于array的常用方法的相關(guān)資料,需要的朋友可以參考下2017-05-05JQuery 前臺切換網(wǎng)站的樣式實(shí)現(xiàn)
本文說的是在WordPress中怎樣利用JQuery在網(wǎng)站的前臺切換樣式的方法?;蛘哌@篇文章的方法大家可能不是太需要,因?yàn)槲矣X得這是解決我被主題樣式折騰到差不多分裂的原因及結(jié)果的最后手段。2009-06-06解決layui前端框架 form表單,table表等內(nèi)置控件不顯示的問題
今天小編就為大家分享一篇解決layui前端框架 form表單,table表等內(nèi)置控件不顯示的問題,具有很好的參考價(jià)值,希望對大家有所幫助。一起跟隨小編過來看看吧2018-08-08解讀input標(biāo)簽的value屬性及name屬性
這篇文章主要介紹了解讀input標(biāo)簽的value屬性,具有很好的參考價(jià)值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教2023-01-011分鐘快速了解js實(shí)現(xiàn)下載文件功能的4種方式
在前端開發(fā)中,我們經(jīng)常需要實(shí)現(xiàn)文件下載功能,例如下載用戶上傳的圖片、用戶生成的文件等,這篇文章主要給大家介紹了關(guān)于如何通過1分鐘快速了解js實(shí)現(xiàn)下載文件功能的4種方式,需要的朋友可以參考下2024-03-03