17HUI - 进度条(hui-progress)

简介: 17HUI - 进度条(hui-progress)

效果图

image.png

示例代码

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>HUI</title>
<link rel="stylesheet" type="text/css" href="../css/hui.css" />
</head>
<body>
<header class="hui-header">
    <div id="hui-back"></div>
    <h1>HUI 进度条</h1>
</header>
<div class="hui-wrap">
    <div class="hui-common-title" style="margin-top:15px;">
        <div class="hui-common-title-line"></div>
        <div class="hui-common-title-txt">进度条演示</div>
        <div class="hui-common-title-line"></div>
    </div>
    <div style="padding:28px;">
    <div style="text-align:right; padding:5px 0px;">60%</div>
    <div class="hui-progress" id="progress1">
        <span></span>
    </div>
    <div style="padding:5px 0px; padding-top:80px; text-align:center;">
        带有动画的进度条
    </div>
    <div style="text-align:right; padding:5px 0px;">20%</div>
    <div class="hui-progress" id="progress2">
        <span></span>
        <div class="hui-progressing"></div>
    </div>
   </div>
</div>
<script src="../js/hui.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
hui.ready(function(){
    hui('#progress1').progressBar(60);
    hui('#progress2').progressBar(20);
});
</script>
</body>
</html>
目录
相关文章
15HUI - Loading动画(hui.loading)
15HUI - Loading动画(hui.loading)
53 0
15HUI - Loading动画(hui.loading)
|
JavaScript
25HUI - 下拉刷新(hui-loading-wrap)
25HUI - 下拉刷新(hui-loading-wrap)
63 0
|
JavaScript
10HUI - 按钮(hui-button)
10HUI - 按钮(hui-button)
61 0
12HUI - Toast提示框(hui.toast)
12HUI - Toast提示框(hui.toast)
60 0
24HUI - 图片懒加载(hui-lazy)
24HUI - 图片懒加载(hui-lazy)
25 0
|
6月前
IKun Progress
IKun Progress
768 0
11HUI - 数字标识(hui-badge)
11HUI - 数字标识(hui-badge)
48 0
11HUI - 数字标识(hui-badge)
26HUI - 上拉加载(hui-refresh)
26HUI - 上拉加载(hui-refresh)
59 0
|
JavaScript
22HUI - 轮播组件(hui-swipe)
22HUI - 轮播组件(hui-swipe)
58 0
|
JavaScript
27HUI - picker(huiPicker)
27HUI - picker(huiPicker)
47 0