jquery/jindutiao/ target=_blank class=infotextkey>jquery进度条代码:
附,jquery进度条代码中用到的css样式:
<style type="text/css">
h1 {
font-size: 16px;
color: #999;
font-weight: normal;
text-align: center;
line-height: 90px;
border-top: 1px dashed #ddd;
margin-top: 50px;
}
* {
margin: 0;
padding: 0;
}
.taskBoxLinks {
float: left;
width: 225px;
height: 7px;
font-size: 0;
line-height: 0;
background: #f2f2f2;
border: 1px solid #dedede;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
position: relative;
margin-top: 8px;
margin-right: 0px;
cursor: pointer;
}
.taskBoxLinks h3,.taskBoxLinks h4 {
position: absolute;
left: -1px;
top: -1px;
height: 7px;
font-size: 0;
line-height: 0;
width: 100%;
background: #a3d9f4;
border: 1px solid #187aab;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
z-index: 99;
}
.taskBoxLinks h4 {
border: 1px solid #91cdea;
background: #f5fafc;
z-index: 88;
}
.taskBox {
width: 360px;
margin: 40px auto;
color: #666;
}
</style>
以下是jquery进度条的容器,显示进度条的加载进度。
<div class="taskBox">
<div class="taskBoxLinks"><h3 id="cpuUsageWidth" style="width:60%;"></h3><h4></h4></div><span id="cpuUsage" >60%</span>
</div>