用CSS設計類似條狀統計表效果,css設計條狀統計表

來源:互聯網
上載者:User

用CSS設計類似條狀統計表效果,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 class="p670"><b>IE6 = 21% </b></dd>
<dd class="p67"><b>IE7 = 52% </b></dd>
<dd class="p12"><b>Opera = 3.2% </b></dd>
<dd class="p197"><b>Firefox = 16.7% </b></dd>
<dd class="p26"><b>Mozilla = 6.3% </b></dd>
<dd class="p08"><b>NN7 = 1.2% </b></dd>
</dl>
<div>http://www.999jiujiu.com/</div>
</body>
</html>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.