用css做圆柱型报表–简单版

资讯 驱动中国 181 次阅读 0 条评论
分享 Q

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Simple accessible Charts</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<style type="text/css">
.chart {
 font-family: Tahoma;
 font-size: 12px;
 border: 1px solid #ccc;
 float: left;
 margin: 0;
 padding: .4em .1em;
}

.chart li {
 list-style: none;
 float: left;
 width: 5em;
 text-align: center;
 background: url(chart_bg.gif) center 1.6em no-repeat;
}

.chart li span {
 display: block;
 text-indent: -999em;
 padding-bottom: 90px;
 background: url(chart_bg_ol.gif) center -1px no-repeat;
 border-top: 5px solid #fff;
}

.chart strong {
 display: block;
 text-align: center;
 font-weight: normal;
}

 

</style>
</head>

<body>


<ul class="chart">
<li>一月<span style="background-position: center -35">: </span><strong>35%</strong></li>
<li>二月<span style="background-position: center -40">: </span><strong>40%</strong></li>
<li>三月<span style="background-position: center -87">: </span><strong>87%</strong></li>
<li>四月<span style="background-position: center -45">: </span><strong>45%</strong></li>
<li>五月<span style="background-position: center -23">: </span><strong>23%</strong></li>
</ul>
<p style="clear: both"></p><p>&nbsp;</p>


<p style="clear: both"></p><p>&nbsp;</p>

<ul class="chart">
<li><em>一月</em><span style="background-position: center -35">: </span><strong>35%</strong></li>
<li><em>二月</em><span style="background-position: center -40">: </span><strong>40%</strong></li>
<li><em>三月</em><span style="background-position: center -87">: </span><strong>87%</strong></li>
<li><em>四月</em><span style="background-position: center -45">: </span><strong>45%</strong></li>
<li><em>五月</em><span style="background-position: center -23">: </span><strong>23%</strong></li>
</ul>

<p style="clear: both"></p><p>&nbsp;</p>

</body>
</html>

版权声明:本文由驱动中国整理发布,转载需注明出处与原文链接。如有疑问请联系 editor@qudong.com
本文价值 成为第一个评分的人
登录后为本文打分
网友评论0 条评论
正在回复 的评论取消
评论加载中…
🔐

登录后参与互动

评论、点赞均可赚积分
连续签到、邀请好友也有奖励 🎁

电脑端: 微信扫码登录 微信内: 一键登录

微信扫一扫

打开微信「扫一扫」,分享本文到朋友圈或好友