当前位置: 主页 > 网页制作 > CSS > 用简单的css实现的圆柱型报表效果

用简单的css实现的圆柱型报表效果

时间:2009-12-23来源:互联网 点击:

代码框看看具体效果:
 
图片素材如下:      

<!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(HTTP://www.info110.com/upfile/20091223104135428.gif) center 1.6em no-repeat;
}
.chart li span {
display: block;
text-indent: -999em;
padding-bottom: 90px;
background: url(HTTP://www.info110.com/upfile/20091223104135737.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>

站长资讯网
. TAG: css 圆柱型报表
推荐内容最近更新人气排行
关于我们 | 友情链接 | 网址推荐 | 常用资讯 | 网站地图 | RSS | 留言