资料
表格
制度
合同
管理
职场
经营
创业
范文
总结
计划
作文
文章
美文
词句
教程
模板
图片
字体
图标
办公
人事
财务
生产
管理资源吧首页
>>>
教程
>>>
编程
>>>
JavaScript教程
>>>
CSS 直方图布局示例
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>CSS直方图示例</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(/upload/2009-11/20091104144827988.gif) center 1.6em no-repeat; } .chart li span { display: block; text-indent: -999em; padding-bottom: 90px; background: url(/upload/2009-11/20091104144827692.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> </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> </p> </body> </html>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行
]
教程首页
更多教程