爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
用表格实现的柱状图特效
用表格实现的柱状图特效
日期:2014-05-18 浏览次数:20584 次
基于table的柱状图实现,以下是HTML网页特效代码,点击运行按钮可查看效果:
以下是程序代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> 基于table的柱状图实现——dudo博客 </title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <style type="text/css"> * {margin:0; padding:0;} body {padding:0;margin:40px;font-size:9pt;font-family:Helvetica,Geneva,sans-serif;} table#q-graph { width:600px; height:300px; caption-side:top; border:2px solid #0063be; background:transparent; position:relative; display:block; z-index:2; } table#q-graph caption { width:100%; position:absolute; top:-20px; } table#q-graph tbody tr,table#q-graph tbody th { position:absolute; width:150px; height:296px; vertical-align: top; bottom:0; border-right:1px dotted #41a3e2; } tr#q1 {left:0;} tr#q2 {left:149px;} tr#q3 {left:298px;} tr#q4 {left:447px;border-right:none;} td.bar{ position:absolute; text-align:center; width:34px; bottom:0; .bottom:2px; z-index:2; } th.north,td.north { left:36px; background:#ddd url(http://www.dudo.org/attachments/month_0804/c2008428195153.gif) no-repeat 0 0; } th.south,td.south { left:80px; background:#ddd url(http://www.dudo.org/attachments/month_0804/c2008428195153.gif) no-repeat -34px 0; } table#q-graph thead tr { bottom:auto; left:100%; margin:-2.5em 0pt 0pt 5em; top:50%; position:absolute; } table#q-graph thead th { width:34px; position:absolute; left:0; height:auto; color:#fff; } table#q-graph thead th.north {top:30px;} ul#ticks { list-style-type:none; width:600px; position:relative; top:-300px;#top:-302px;z-index:1; background:#adfe12; } ul#ticks li { border-top:1px dotted #41a3e2; height:59px; } ul#ticks li:first-child { border:none; } .fix_IE{border:none!important;#height:45px!important;} ul#ticks li p { position:absolute; left:100%; } </style> </head> <body> <table id="q-graph" cellspacing="0"> <caption>某公司2007年1~4季度南北区域销售情况对照表(单位:万件)</caption> <thead> <tr> <th></th> <th class="north">北方</th> <th class="south">南方</th> </tr> </thead> <tbody> <tr id="q1"> <th scope="row">Q1</th> <td class="north bar" style="height:111px">18</td> <td class="south bar" style="height:99px">16</td> </tr> <tr id="q2"> <th scope="row">Q2</th> <td class="north bar" style="height:198px">32</td> <td class="south bar" style="height:210px">34</td> </tr> <tr id="q3"> <th scope="row">Q3</th> <td class="north bar" style="height:260px">43</td> <td class="south bar" style="height:198px">32</td> </tr> <tr id="q4"> <th scope="row">Q4</th> <td class="north bar" style="height:111px">18</td> <td class="south bar" style="height:198px">32</td> </tr> </tbody> </table> <ul id="ticks"> <li class="fix_IE"><p>50</p></li> <li><p>40</p></li> <li><p>30</p></li> <li><p>20</p></li> <li><p>10</p></li> </ul> </body> &
上一篇:狡猾的按钮特效
下一篇:颜色板
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
苏宁双线同价遇难题:第一个吃螃蟹不轻松
三问刘强东:京东为何近来火气这么大?
微软大幅调整Bing在华策略:从高大上到接地气
快递企业征收“份子钱” 成全了谁 苦了谁?
HTC曝出特大丑闻:高管诈骗+商业间谍
中国雅虎邮箱今日关停 由盛及衰的背后
腾讯微信昨晚再现大规模故障 多地受到影响
蓝宝石PK大猩猩玻璃:作为屏幕谁更有优势?
国美在线叫板京东:李俊涛底气在哪?
推荐阅读
更多>
解读苹果收购Beats背后动机:库克在想什么?
扎克伯格华裔妻子首度亮相电视节目畅谈情史
微软确认 Surface 计划更多尺寸和LTE 版本
清点:罗永浩推锤子ROM 小米打法遭模拟
TD是完成中国梦的一个契机
苹果售后生态链乱象:供需失衡价钱不一
诺基亚再缩阵线 封锁上海旗舰店全力蜕变
《归来》遭视频网盗播 乐视网状告小米盒子侵权
运营商补贴减少 国内通信业拐点逼近
携程收买酷讯成定局:转型互联网+投资
360涉足搜索范围 百度市场份额面临应战
同为70前后人,马云为什么总是像外星人那么瘦
原万网CTO周雷加盟亿玛 出任CTO一职
苹果多色彩!葫芦里究竟卖的什么药
天音通信170套餐试商用放号:流量两年不清零
微软史上最大规模裁员,一半诺基亚员工
打车软件竞争白热化:有冷兵器时代意味
淘宝公布新规:升级售假卖家惩罚力度
HTC与苹果三星距离扩展 C2B形式成新武器
苏宁易购成世界最慢电商 专家称其涉嫌违约