亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

annuaire recherche
Bootstrap 基礎(chǔ)教程 Bootstrap 環(huán)境安裝 Bootstrap 教程 Bootstrap CSS Bootstrap CSS 概覽 Bootstrap 按鈕 Bootstrap 表單 Bootstrap 表格 Bootstrap 代碼 Bootstrap 輔助類 Bootstrap 排版 Bootstrap 圖片 Bootstrap 網(wǎng)格系統(tǒng) Bootstrap 網(wǎng)格系統(tǒng)實(shí)例:堆疊的水平 Bootstrap 網(wǎng)格系統(tǒng)實(shí)例:手機(jī)、平板電腦、臺式電腦 Bootstrap 網(wǎng)格系統(tǒng)實(shí)例:中型和大型設(shè)備 Bootstrap 響應(yīng)式實(shí)用工具 Bootstrap 布局組件 Bootstrap Well Bootstrap 按鈕下拉菜單 Bootstrap 按鈕組 Bootstrap 標(biāo)簽 Bootstrap 超大屏幕(Jumbotron) Bootstrap 導(dǎo)航欄 Bootstrap 導(dǎo)航元素 Bootstrap 多媒體對象(Media Object) Bootstrap 分頁 Bootstrap 徽章(Badges) Bootstrap 進(jìn)度條 Bootstrap 警告(Alerts) Bootstrap 列表組 Bootstrap 面板(Panels) Bootstrap 面包屑導(dǎo)航(Breadcrumbs) Bootstrap 輸入框組 Bootstrap 縮略圖 Bootstrap 下拉菜單(Dropdowns) Bootstrap 頁面標(biāo)題(Page Header) Bootstrap 字體圖標(biāo)(Glyphicons) Bootstrap 插件 Bootstrap 按鈕(Button) Bootstrap 標(biāo)簽頁(Tab) Bootstrap 插件概覽 Bootstrap 彈出框(Popover) Bootstrap 附加導(dǎo)航(Affix) Bootstrap 滾動(dòng)監(jiān)聽(Scrollspy) Bootstrap 過渡效果(Transition) Bootstrap 警告框(Alert) Bootstrap 輪播(Carousel) Bootstrap 模態(tài)框(Modal)插件 Bootstrap 提示工具(Tooltip) Bootstrap 下拉菜單(Dropdown) Bootstrap 折疊(Collapse) Bootstrap 附錄 Bootstrap CSS編碼規(guī)范 Bootstrap HTML編碼規(guī)范 Bootstrap UI 編輯器
personnages

Bootstrap 進(jìn)度條


本章將講解 Bootstrap 進(jìn)度條。在本教程中,您將看到如何使用 Bootstrap 創(chuàng)建加載、重定向或動(dòng)作狀態(tài)的進(jìn)度條。

Bootstrap 進(jìn)度條使用 CSS3 過渡和動(dòng)畫來獲得該效果。Internet Explorer 9 及之前的版本和舊版的 Firefox 不支持該特性,Opera 12 不支持動(dòng)畫。

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

創(chuàng)建一個(gè)基本的進(jìn)度條的步驟如下:

  • 添加一個(gè)帶有 class .progress 的 <div>。
  • 接著,在上面的 <div> 內(nèi),添加一個(gè)帶有 class .progress-bar 的空的 <div>。
  • 添加一個(gè)帶有百分比表示的寬度的 style 屬性,例如 style="60%"; 表示進(jìn)度條在 60% 的位置。

讓我們看看下面的實(shí)例:

<!DOCTYPE html>
<html>
<head>
   <title>Bootstrap 實(shí)例 - 進(jìn)度條</title>
   <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
   <script src="/scripts/jquery.min.js"></script>
   <script src="/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>

<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>

</body>
</html>

結(jié)果如下所示:

進(jìn)度條

交替的進(jìn)度條

創(chuàng)建不同樣式的進(jìn)度條的步驟如下:

  • 添加一個(gè)帶有 class .progress 的 <div>。
  • 接著,在上面的 <div> 內(nèi),添加一個(gè)帶有 class .progress-bar 和 class progress-bar-* 的空的 <div>。其中,* 可以是 success、info、warning、danger。
  • 添加一個(gè)帶有百分比表示的寬度的 style 屬性,例如 style="60%"; 表示進(jìn)度條在 60% 的位置。

讓我們看看下面的實(shí)例:

<!DOCTYPE html>
<html>
<head>
   <title>Bootstrap 實(shí)例 - 交替的進(jìn)度條</title>
   <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
   <script src="/scripts/jquery.min.js"></script>
   <script src="/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>

<div class="progress">
   <div class="progress-bar progress-bar-success" role="progressbar" 
      aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" 	
      style="width: 90%;">
      <span class="sr-only">90% 完成(成功)</span>
   </div>
</div>
<div class="progress">
   <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>
<div class="progress">
   <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>
<div class="progress">
   <div class="progress-bar progress-bar-danger" role="progressbar" 
      aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" 	
      style="width: 10%;">
      <span class="sr-only">10% 完成(危險(xiǎn))</span>
   </div>
</div>

</body>
</html>

結(jié)果如下所示:

交替的進(jìn)度條

條紋的進(jìn)度條

創(chuàng)建一個(gè)條紋的進(jìn)度條的步驟如下:

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

讓我們看看下面的實(shí)例:

<!DOCTYPE html>
<html>
<head>
   <title>Bootstrap 實(shí)例 - 條紋的進(jìn)度條</title>
   <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
   <script src="/scripts/jquery.min.js"></script>
   <script src="/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>

<div class="progress progress-striped">
   <div class="progress-bar progress-bar-success" role="progressbar" 
      aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" 	
      style="width: 90%;">
      <span class="sr-only">90% 完成(成功)</span>
   </div>
</div>
<div class="progress progress-striped">
   <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>
<div class="progress progress-striped">
   <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>
<div class="progress progress-striped">
   <div class="progress-bar progress-bar-danger" role="progressbar" 
      aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" 	
      style="width: 10%;">
      <span class="sr-only">10% 完成(危險(xiǎn))</span>
   </div>
</div>

</body>
</html>

結(jié)果如下所示:

條紋的進(jìn)度條

動(dòng)畫的進(jìn)度條

創(chuàng)建一個(gè)動(dòng)畫的進(jìn)度條的步驟如下:

  • 添加一個(gè)帶有 class .progress.progress-striped 的 <div>。同時(shí)添加 class .active。
  • 接著,在上面的 <div> 內(nèi),添加一個(gè)帶有 class .progress-bar 的空的 <div>。
  • 添加一個(gè)帶有百分比表示的寬度的 style 屬性,例如 style="60%"; 表示進(jìn)度條在 60% 的位置。

這將會(huì)使條紋具有從右向左的運(yùn)動(dòng)感。

讓我們看看下面的實(shí)例:

<!DOCTYPE html>
<html>
<head>
   <title>Bootstrap 實(shí)例 - 動(dòng)畫的進(jìn)度條</title>
   <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
   <script src="/scripts/jquery.min.js"></script>
   <script src="/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>

<div class="progress progress-striped active">
   <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>

</body>
</html>

結(jié)果如下所示:

動(dòng)畫的進(jìn)度條

堆疊的進(jìn)度條

您甚至可以堆疊多個(gè)進(jìn)度條。把多個(gè)進(jìn)度條放在相同的 .progress 中即可實(shí)現(xiàn)堆疊,如下面的實(shí)例所示:

<!DOCTYPE html>
<html>
<head>
   <title>Bootstrap 實(shí)例 - 堆疊的進(jìn)度條</title>
   <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
   <script src="/scripts/jquery.min.js"></script>
   <script src="/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>

<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>

</body>
</html>

結(jié)果如下所示:

堆疊的進(jìn)度條
Article précédent: Article suivant: