<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Bootstrap ProgressbarjQuery 的進(jìn)度條插件

          聯(lián)合創(chuàng)作 · 2023-10-02 15:26

          Bootstrap Progressbar 是一個 jQuery 插件,擴(kuò)展了基本引導(dǎo)進(jìn)度。它通過添加 Javascript 中預(yù)先存在的 CSS 轉(zhuǎn)換提供了動態(tài)進(jìn)度條。此外,你可以在動態(tài)進(jìn)度條中通過回調(diào)顯示當(dāng)前進(jìn)度信息。

          代碼示例

          default values

          Progressbar.defaults = {
              transition_delay: 300,
              refresh_speed: 50,
              display_text: 'none',
              use_percentage: true,    percent_format: function(percent) { return percent + '%'; },    amount_format: function(amount_part, amount_total) { return amount_part + ' / ' + amount_total; },
              update: $.noop,
              done: $.noop,
              fail: $.noop
          };

          transition_delay

          $(document).ready(function() {
              $('.progress .progress-bar').progressbar({
                  transition_delay: 1500
              });
          });

          animation

          1. horizontal

            • less

              .progress .bar {
                  .transition(width 2s ease-in-out);
              }
            • scss

              .progress.vertical .progress-bar {
                  @include transition(width 2s ease-in-out);
              }
            • css

              .progress .bar {
                  -webkit-transition: width 2s ease-in-out;
                  -moz-transition: width 2s ease-in-out;
                  -ms-transition: width 2s ease-in-out;
                  -o-transition: width 2s ease-in-out;
                  transition: width 2s ease-in-out;
              }
          2. vertical

            • less

              .progress.vertical .bar {
                  .transition(height 2s ease-in-out);
              }
            • scss

              .progress.vertical .bar {
                  @include transition(height 2s ease-in-out);
              }
            • css

              .progress.vertical .bar {
                  -webkit-transition: height 2s ease-in-out;
                  -moz-transition: height 2s ease-in-out;
                  -ms-transition: height 2s ease-in-out;
                  -o-transition: height 2s ease-in-out;
                  transition: height 2s ease-in-out;
              }
          瀏覽 14
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  午夜福利免费视频 | 人人操碰人人 | 果冻传媒堕落人妻四玛丽莲A - 神秘资源 | 国产无码成人电影 | 五月丁香婷婷六月 |