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)
57 0
15HUI - Loading动画(hui.loading)
|
JavaScript
10HUI - 按钮(hui-button)
10HUI - 按钮(hui-button)
73 0
|
JavaScript
25HUI - 下拉刷新(hui-loading-wrap)
25HUI - 下拉刷新(hui-loading-wrap)
68 0
12HUI - Toast提示框(hui.toast)
12HUI - Toast提示框(hui.toast)
67 0
07HUI - 普通列表(hui-list)
07HUI - 普通列表(hui-list)
50 0
03HUI -基础文本(hui-common-title)
03HUI -基础文本(hui-common-title)
59 0
11HUI - 数字标识(hui-badge)
11HUI - 数字标识(hui-badge)
54 0
11HUI - 数字标识(hui-badge)
26HUI - 上拉加载(hui-refresh)
26HUI - 上拉加载(hui-refresh)
65 0
|
JavaScript
22HUI - 轮播组件(hui-swipe)
22HUI - 轮播组件(hui-swipe)
65 0
14HUI - 全屏消息(hui.blackMask)
14HUI - 全屏消息(hui.blackMask)
52 0