几款漂亮的纯css进度条

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"   />
<style>
.process-bar
{
width:100px;
display:inline-block;
*zoom:1;
}
.pb-wrapper
{
border:1px solid gray;
border-style:solid none;
position:relative;
background:#cfd0d2;
}
.pb-container
{
border:1px solid gray;
border-style:none solid;
height:12px;
position:relative;
left:-1px;
margin-right:-2px;
font:1px/0 arial;
padding:1px;
}
.pb-highlight
{
position:absolute;
left:0;
top:0;
_top:1px;
width:100%;
opacity:0.6;
filter:alpha(opacity=60);
height:6px;
background:white;
font-size:1px;
line-height:0;
z-index:1
}
.pb-text
{
width:100%;
position:absolute;
left:0;
top:0;
text-align:center;
font:10px/12px arial;
}
.pb-value
{
height:100%;
width:50%;
background:#19d73d;
}
.pb-text
{
color:black;
font:10px/12px arial
}
/* -- 以下是重写的皮肤 -- */
/* green */
.skin-green .pb-wrapper
{
border-color:#666;
border-top-color:#628c2d;
}
.skin-green .pb-container
{
border-color:#666;
border-left-color:#628c2d;
}
.skin-green .pb-text{ color:black }
/* blue */
.skin-blue .pb-wrapper
{
border-color:#0e7c78;
border-top-color:#41beb9;
}
.skin-blue .pb-container
{
border-color:#0e7c78;
border-left-color:#41beb9;
}
.skin-blue .pb-text
{
color:white
}
.skin-blue .pb-value
{
background:#159b96;
}
/* red */
.skin-red .pb-wrapper
{
border-color:#8e1411;
border-top-color:#cb3d3a;
}
.skin-red .pb-container
{
border-color:#8e1411;
border-left-color:#cb3d3a;
}
.skin-red .pb-text
{
color:#470200;
}
.skin-red .pb-value
{
background:#d70500
}
/* orange */
.skin-orange .pb-wrapper,
.skin-orange .pb-container
{
border-color:#d55110;
}
.skin-orange .pb-text
{
color:#250f00;
}
.skin-orange .pb-value
{
background:#d75a00;
}
/* purple */
.skin-purple .pb-wrapper,
.skin-purple .pb-container
{
border-color:#a90561;
}
.skin-purple .pb-text
{
color:#720040;
}
.skin-purple .pb-value
{
background:#9d118e
}
/* black */
.skin-black .pb-wrapper,
.skin-black .pb-container
{
border-color:black
}
.skin-black .pb-text
{
color:gray;
}
.skin-black .pb-value
{
background:#111111;
}
/* 分割线样式 */
.hua-li-de-fen-ge-xian
{
border-bottom:2px dashed #eee;
height:1px;
font-size:1px;
margin:5px 0
}
</style>
</head>
<body>
     <div class="process-bar skin-green">
     <div class="pb-wrapper">
     <div class="pb-highlight"></div>
     <div class="pb-container">
     <div class="pb-text">10%</div>
     <div class="pb-value"></div>
     </div>
     </div>
     </div>
     <div class="hua-li-de-fen-ge-xian"></div>
     <div class="process-bar skin-blue">
     <div class="pb-wrapper">
     <div class="pb-highlight"></div>
     <div class="pb-container">
     <div class="pb-text">100%</div>
     <div class="pb-value" style="width:100%"></div>
     </div>
     </div>
     </div>
     <div class="hua-li-de-fen-ge-xian"></div>
     <div class="process-bar skin-red">
     <div class="pb-wrapper">
     <div class="pb-highlight"></div>
     <div class="pb-container">
     <div class="pb-text">18%</div>
     <div class="pb-value" style="width:18%"></div>
     </div>
     </div>
     </div>
     <div class="hua-li-de-fen-ge-xian"></div>
     <div class="process-bar skin-orange">
     <div class="pb-wrapper">
     <div class="pb-highlight"></div>
     <div class="pb-container">
     <div class="pb-text">55%</div>
     <div class="pb-value" style="width:55%"></div>
     </div>
     </div>
     </div>
     <div class="hua-li-de-fen-ge-xian"></div>
     <div class="process-bar skin-purple">
     <div class="pb-wrapper">
     <div class="pb-highlight"></div>
     <div class="pb-container">
     <div class="pb-text">32%</div>
     <div class="pb-value" style="width:32%"></div>
     </div>
     </div>
     </div>
     <div class="hua-li-de-fen-ge-xian"></div>
     <div class="process-bar skin-black">
     <div class="pb-wrapper">
     <div class="pb-highlight"></div>
     <div class="pb-container">
     <div class="pb-text">78%</div>
     <div class="pb-value" style="width:78%"></div>
     </div>
     </div>
     </div>
</body>
</html>


 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值