进度条样式

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>test_css</title>

<style type="text/css">

*{margin:0;padding:0;}

body{font:12px "宋体", Verdana, sans-serif;}

.digg{ margin:0 auto; width:600px; overflow: hidden;}

.good{ background:url(good.png) no-repeat; width:250px;} 

.digg p{ padding-top:10px; padding-left:27px; text-align: center; font-size: 18px; font-family: cursive;} 

.digg_bar{ height:6px; margin-top:7px; margin-left:10px; background-color: #ccc; font-size:0; border-radius: 3px;}

.num{padding-top: 5px; padding-left: 10px; display: block;}

#g_img{ background:#4e6ef2; height:6px; width:70%; border-radius: 3px;}

#b_img{ background:#ffb300; height:6px; width:30%; border-radius: 3px;}

.bad{background: url(bad.png) no-repeat; width:250px; height: 51px;} 

a{text-decoration: none;}
</style>

</head>

<body>

 <div class="digg" id="digg">

              <div class="good left"> <a href="#">

                <p>顶一下(7000)</p>

                <div class="digg_bar left">

                  <div id="g_img"></div>

                </div>

                <span class="num left" id="num">70%</span> </a> </div>

              <div class="bad right"> <a href="#">

              <p>踩一下(3000)</p>

                <div class="digg_bar left">

                  <div id="b_img"></div>

                </div>

              <span class="num left">30%</span></a></div>

              <div class="clear"></div>

          </div>

</body>

</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值