<!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>