日本搞逼视频_黄色一级片免费在线观看_色99久久_性明星video另类hd_欧美77_综合在线视频

中國最全IT社區平臺 聯系我們 | 收藏本站
阿里云優惠2

jqueryui教程

jQuery UI 教程

jQuery UI 主題

jQuery UI 部件庫

jQuery UI 參考手冊

jQuery UI 實例

jQuery UI 實例 – 進度條(Progressbar)

閱讀 (2374)

jQuery UI 實例 - 進度條(Progressbar)

顯示一個確定的或不確定的進程狀態。

如需了解更多有關 progressbar 部件的細節,請查看 API 文檔 進度條部件(Progressbar Widget)

默認功能

默認的確定的進度條。

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>jQuery UI 進度條(Progressbar) - 默認功能</title>
  <link rel="stylesheet" href="/s//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
  <script src="/upload/help///code.jquery.com/jquery-1.9.1.js"></script>
  <script src="/upload/help///code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
  <link rel="stylesheet" >
  <script>
  $(function() {
    $( "#progressbar" ).progressbar({
      value: 37
    });
  });
  </script>
</head>
<body>
 
<div id="progressbar"></div>
 
 
</body>
</html>

自定義標簽

自定義更新的標簽。

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>jQuery UI 進度條(Progressbar) - 自定義標簽</title>
  <link rel="stylesheet" href="/s//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
  <script src="/upload/help///code.jquery.com/jquery-1.9.1.js"></script>
  <script src="/upload/help///code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
  <link rel="stylesheet" >
  <style>
  .ui-progressbar {
    position: relative;
  }
  .progress-label {
    position: absolute;
    left: 50%;
    top: 4px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #fff;
  }
  </style>
  <script>
  $(function() {
    var progressbar = $( "#progressbar" ),
      progressLabel = $( ".progress-label" );
 
    progressbar.progressbar({
      value: false,
      change: function() {
        progressLabel.text( progressbar.progressbar( "value" ) + "%" );
      },
      complete: function() {
        progressLabel.text( "完成!" );
      }
    });
 
    function progress() {
      var val = progressbar.progressbar( "value" ) || 0;
 
      progressbar.progressbar( "value", val + 1 );
 
      if ( val < 99 ) {         setTimeout( progress, 100 );       }     }       setTimeout( progress, 3000 );   });   </script>
</head>
<body>
 
<div id="progressbar"><div class="progress-label">加載...</div></div>
 
 
</body>
</html>

不確定的值

不確定的進度條,并可在確定和不確定的樣式之間切換。

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>jQuery UI 進度條(Progressbar) - 不確定的值</title>
  <link rel="stylesheet" href="/s//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
  <script src="/upload/help///code.jquery.com/jquery-1.9.1.js"></script>
  <script src="/upload/help///code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
  <link rel="stylesheet" >
  <script>
  $(function() {
    $( "#progressbar" ).progressbar({
      value: false
    });
    $( "button" ).on( "click", function( event ) {
      var target = $( event.target ),
        progressbar = $( "#progressbar" ),
        progressbarValue = progressbar.find( ".ui-progressbar-value" );
 
      if ( target.is( "#numButton" ) ) {
        progressbar.progressbar( "option", {
          value: Math.floor( Math.random() * 100 )
        });
      } else if ( target.is( "#colorButton" ) ) {
        progressbarValue.css({
          "background": '#' + Math.floor( Math.random() * 16777215 ).toString( 16 )
        });
      } else if ( target.is( "#falseButton" ) ) {
        progressbar.progressbar( "option", "value", false );
      }
    });
  });
  </script>
  <style>
  #progressbar .ui-progressbar-value {
    background-color: #ccc;
  }
  </style>
</head>
<body>
 
<div id="progressbar"></div>
<button id="numButton">隨機值 - 確定</button>
<button id="falseButton">不確定</button>
<button id="colorButton">隨機顏色</button>
 
 
</body>
</html>

關閉
程序員人生
主站蜘蛛池模板: 亚洲综合第一页 | 亚洲成人精品久久 | 国产伦精品一区二区 | 久精品视频 | 中文字幕亚洲成人 | 久久久精品一区二区三区 | 国产三级网站 | 国产成人精品久久久 | 国产精品久久久久久久久搜平片 | 国产视频一区二区在线 | 毛片毛片毛片 | 四季久久免费一区二区三区四区 | 污视频在线观看免费 | 亚洲国产一区二区三区 | 国产精品久久久久久久电影 | 国产视频在线免费观看 | 亚洲婷婷综合网 | 91精品中文字幕一区二区三区 | 成人久久久久久 | 91麻豆精品91久久久久同性 | 国产无套精品一区二区 | 成人久久精品 | 国产亚洲欧美视频 | 国产一区二区中文字幕 | 亚洲爱爱天堂 | 国产精品18hdxxxⅹ在线 | 毛片毛片毛片毛片毛片毛片毛片毛片毛片毛片 | 在线不卡一区 | 亚洲自拍偷拍网站 | 九九国产 | 色婷婷亚洲精品 | 久久视频在线免费观看 | 日韩视频网站在线观看 | 亚洲我射av | 午夜精品久久久久 | 操操av| 红桃成人av在线播放 | 韩国色综合 | 欧美精品成人一区二区在线观看 | 一区二区三区欧美日韩 | 欧美91 |