Css静态进度条

图片预览:

Css代码:

<style>
.statusList{width:240px; float:left; line-height:68px;margin:0 2px; text-align:center; font-family:"微软雅黑"; font-size:14px;}

/*颜色*/
.scheduleGray{background-color:#e5e5e5;height:9px; }                                  /*紫色*/
.scheduleGreen{background-color: #6dc942;width: 50%;height: 9px;float:left;}       /*绿色*/
.scheduleBlue{background-color:#6767c6; width:80%;height:9px; float:left;}         /*蓝色*/
</style>

Html代码:

<div class="statusList">
  <div class="scheduleGray" style="position:relative; margin-top:22px; z-index:-1;">
    <div style="float:left; position:absolute; left:0; top:0; z-index:10; z-index:9999;"><img src="workanpai_15.png"/></div>
  <!-- 可以设置class改变进度条的颜色,width可以设置进度条进度 -->
  <div class="scheduleGreen" style="position:relative; z-index:0;width:20%">
    <div style="position: absolute; top: 11px; left: 120px; height: 14px; line-height: 14px; color:#6dc942;">20%</div>
  </div>
  <!-- 模板 -->
    <div style="float:right; position:absolute; right:0; top:0;"><img src="workanpai_18.png" /></div>
  </div>
</div>
posted @ 2014-11-11 16:34  Wangyk  阅读(1978)  评论(0编辑  收藏  举报