首页 > 开发 > CSS > 正文

很漂亮的一个css实现的统计实例

2020-03-24 18:18:21
字体:
来源:转载
供稿:网友
html lang="en"
head
meta http-equiv="Content-Type" content="text/html; charset=utf-8"
title Timeline / Accessible Data Examples /title
style type="text/css" media="screen"
/* SETUP */
* {
margin: 0;
padding: 0;
list-style-type: none;
}
body {
font-family: Helvetica, Arial, sans-serif;
color: #333;
}
a {
color: #2D7BB2;
text-decoration: none;
font-weight: bold;
}
a:hover {
color: #333;
}
h2, h3, h4 {
clear: both;
margin: 0 0 0.6em 0;
}
h3 {
color: #666;
}
.section {
float: left;
clear: left;
padding: 1em 2em;
}
/* TIMELINE CHARTS */
.timeline {
font-size: 0.75em;
height: 10em;
width: 53em;
}
.timeline li {
position: relative;
float: left;
width: 1.5em;
margin: 0 0.1em;
height: 8em;
}
.timeline li a {
display: block;
height: 100%;
}
.timeline li .label {
display: block;
position: absolute;
bottom: -2em;
left: 0;
background: #fff;
width: 100%;
height: 2em;
line-height: 2em;
text-align: center;
}
.timeline li a .count {
display: block;
position: absolute;
bottom: 0;
left: 0;
height: 0;
width: 100%;
background: #AAA;
text-indent: -9999px;
overflow: hidden;
}
.timeline li:hover {
background: #EFEFEF;
}
.timeline li a:hover .count {
background: #2D7BB2;
}
/style
/head
body
div
h2 Timeline chart /h2
h4 ? SPAN id="Copyright_year" 2010.3 /SPAN JZxue.com /h4
ul
li
a href="http://www.example.com/2007/dec/1/" title="December 1, 2007: 40"
span 1 /span
span (40) /span
/a
/li
li
a href="http://www.example.com/2007/dec/2/" title="December 2, 2007: 100"
span 2 /span
span (100) /span
/a
/li
li
a href="http://www.example.com/2007/dec/3/" title="December 3, 2007: 150"
span 3 /span
span (150) /span
/a
/li
li
a href="http://www.example.com/2007/dec/4/" title="December 4, 2007: 40"
span 4 /span
span (40) /span
/a
/li
li
a href="http://www.example.com/2007/dec/5/" title="December 5, 2007: 100"
span 5 /span
span (100) /span
/a
/li
li
a href="http://www.example.com/2007/dec/6/" title="December 6, 2007: 40"
span 6 /span
span (40) /span
/a
/li
li
a href="http://www.example.com/2007/dec/7/" title="December 7, 2007: 40"
span 7 /span
span (40) /span
/a
/li
li
a href="http://www.example.com/2007/dec/8/" title="December 8, 2007: 100"
span 8 /span
span (100) /span
/a
/li
li
a href="http://www.example.com/2007/dec/9/" title="December 9, 2007: 150"
span 9 /span
span (150) /span
/a
/li
li
a href="http://www.example.com/2007/dec/10/" title="December 10, 2007: 40"
span 10 /span
span (40) /span
/a
/li
li
a href="http://www.example.com/2007/dec/11/" title="December 11, 2007: 100"
span 11 /span
span (100) /span
/a
/li
li
a href="http://www.example.com/2007/dec/12/" title="December 12, 2007: 40"
span 12 /span
span (40) /span
/a
/li
li
a href="http://www.example.com/2007/dec/13/" title="December 13, 2007: 150"
span 13 /span
span (100) /span
/a
/li
li
a href="http://www.example.com/2007/dec/14/" title="December 14, 2007: 100"
span 14 /span
span (100) /span
/a
/li
li
a href="http://www.example.com/2007/dec/15/" title="December 15, 2007: 200"
span 15 /span
span (150) /span
/a
/li
li
a href="http://www.example.com/2007/dec/16/" title="December 16, 2007: 40"
span 16 /span
span (40) /span
/a
/li
li
a href="http://www.example.com/2007/dec/17/" title="December 17, 2007: 100"
span 17 /span
span (100) /span
/a
/li
li
a href="http://www.example.com/2007/dec/18/" title="December 18, 2007: 150"
span 18 /span
span (150) /span
/a
/li
li
a href="http://www.example.com/2007/dec/19/" title="December 19, 2007: 200"
span 19 /span
span (40) /span
/a
/li
li
a href="http://www.example.com/2007/dec/20/" title="December 20, 2007: 100"
span 20 /span
span (100) /span
/a
/li
li
a href="http://www.example.com/2007/dec/21/" title="December 21, 2007: 200"
span 21 /span
span (150) /span
/a
/li
li
a href="http://www.example.com/2007/dec/22/" title="December 22, 2007: 40"
span 22 /span
span (40) /span
/a
/li
li
a href="http://www.example.com/2007/dec/23/" title="December 23, 2007: 100"
span 23 /span
span (100) /span
/a
/li
li
a href="http://www.example.com/2007/dec/24/" title="December 24, 2007: 150"
span 24 /span
span (150) /span
/a
/li
li
a href="http://www.example.com/2007/dec/25/" title="December 25, 2007: 150"

郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表