欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Bootstrap進(jìn)度條實(shí)現(xiàn)代碼解析

 更新時(shí)間:2017年03月07日 14:41:34   作者:Dannii_  
這篇文章主要為大家詳細(xì)介紹了Bootstrap進(jìn)度條的相關(guān)資料,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下

本文實(shí)例為大家分享了Bootstrap進(jìn)度條的具體代碼,供大家參考,具體內(nèi)容如下

基本結(jié)構(gòu)

<div class="progress">
  <div class="progress-bar" role="progressbar" aria-valuenow="60" 
    aria-valuemin="0" aria-valuemax="100" style="width: 40%;">
    <span class="sr-only">40% 完成</span>
  </div>
</div>

默認(rèn)的進(jìn)度條:

創(chuàng)建一個(gè)基本的進(jìn)度條的步驟如下:
(1)添加一個(gè)帶有 .progress 的 <div>。
(2)在上面的 <div> 內(nèi),添加一個(gè)帶有 .progress-bar 的空的 <div>。
(3)添加一個(gè)帶有百分比表示的寬度的 style 屬性,例如 style=”60%”; 表示進(jìn)度條在 60% 的位置。

創(chuàng)建不同樣式的進(jìn)度條:
(1)添加一個(gè)帶有 class .progress 的 <div>。
(2)接著,在上面的 <div> 內(nèi),添加一個(gè)帶有 .progress-bar 和 progress-bar- 的空的 <div>。其中, 可以是 success、info、warning、danger。
(3)添加一個(gè)帶有百分比表示的寬度的 style 屬性,例如 style=”60%”; 表示進(jìn)度條在 60% 的位置。

創(chuàng)建一個(gè)條紋的進(jìn)度條:
(1)添加一個(gè)帶有 class .progress 和 .progress-striped 的 <div>。
(2)在上面的 <div> 內(nèi),添加一個(gè)帶有 .progress-bar 和 progress-bar-* 的空的 <div>。其中,* 可以是 success、info、warning、danger。
(3)添加一個(gè)帶有百分比表示的寬度的 style 屬性,例如 style=”60%”; 表示進(jìn)度條在 60% 的位置。

創(chuàng)建一個(gè)動(dòng)畫(huà)的進(jìn)度條:
(1)添加一個(gè)帶有 class .progress 和 .progress-striped 的 <div>。同時(shí)添加 .active。
(2)接著,在上面的 <div> 內(nèi),添加一個(gè)帶有 .progress-bar 的空的 <div>。
(3)添加一個(gè)帶有百分比表示的寬度的 style 屬性,例如 style=”60%”; 表示進(jìn)度條在 60% 的位置。

<div class="progress">
 <div class="progress-bar progress-bar-success" role="progressbar"
   aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"
   style="width: 40%;">
  <span class="sr-only">40% 完成</span>
 </div>

 <div class="progress-bar progress-bar-info" role="progressbar"
   aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"
   style="width: 30%;">
  <span class="sr-only">30% 完成(信息)</span>
 </div>

 <div class="progress-bar progress-bar-warning" role="progressbar"
   aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"
   style="width: 20%;">
  <span class="sr-only">20% 完成(警告)</span>
 </div>
</div>

效果圖:

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評(píng)論