你的位置:首页 > 网页设计

[网页设计]用CSS设计类似条状统计表效果


<html>
<head>
<title>用CSS设计类似条状统计表效果</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style>
dl {
margin:0;
padding:0 0 15px 0;
width:401px;
height:auto;
background:#fff url(bar.gif) bottom left no-repeat;
}


dt {
text-align:center;
font-size:12px;
border-bottom:3px solid #fff;
}


dd {
margin:0;
display:block;
width:400px;
height:2em;
background:#0a0;
border-bottom:1px solid #fff;
font-size:12px;
}


dd b {
float:right;
display:block;
margin-left:auto;
background:#cec;
height:2em;
line-height:2em;
text-align:right;
font-size:12px;
}
dd.p670 b {width:33%;}
dd.p67 b {width:93.3%;}
dd.p12 b {width:98.8%;}
dd.p197 b {width:80.3%;}
dd.p26 b {width:97.3%;}
dd.p08 b {width:99.2%;}
</style>
</head>
<body>
<dl>
<dt>主流浏览器用户数(%) - July 2009</dt>
<dd ><b>IE6 = 21% </b></dd>
<dd ><b>IE7 = 52% </b></dd>
<dd ><b>Opera = 3.2% </b></dd>
<dd ><b>Firefox = 16.7% </b></dd>
<dd ><b>Mozilla = 6.3% </b></dd>
<dd ><b>NN7 = 1.2% </b></dd>
</dl>
<div>http://www.999jiujiu.com/</div>
</body>
</html>