首页 > Web开发 > 详细

Css静态进度条

时间:2014-11-11 18:17:23      阅读:227      评论:0      收藏:0      [点我收藏+]

图片预览:

bubuko.com,布布扣

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>

Css静态进度条

原文:http://www.cnblogs.com/wykLog/p/4089834.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!