星空网 > 软件开发 > 网页设计

CSS实现的柱状图效果实例代码

CSS实现的柱状图效果实例代码:
柱状图一般用于数据统,比较直观人性化,下面就简单介绍一下如何使用CSS实现此效果。
代码实例如下:

 

<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="author" content="http://www.softwhy.com/" /><title>蚂蚁部落</title><style type="text/css">#wrap { position:relative; width:500px; height:600px;}#wrap div { width:15px; position:absolute; bottom:5px; background:#f00;}</style></head><body><div id="wrap"> <div style="height:100px;left:10px"></div> <div style="height:200px;left:30px"></div> <div style="height:300px;left:50px"></div> <div style="height:500px;left:70px"></div> <div style="height:200px;left:90px"></div></div></body></html>

 

以上代码非常的简单就是采用绝对定位,控制div的位置,这样就实现了并排效果。

原文地址是:http://www.softwhy.com/forum.php?mod=viewthread&tid=9767

更多内容可以参阅:http://www.softwhy.com/divcss/

 




原标题:CSS实现的柱状图效果实例代码

关键词:CSS

CSS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

中国陆运到泰国的路线:https://www.goluckyvip.com/tag/104166.html
泰国到中国陆运路线:https://www.goluckyvip.com/tag/104167.html
中国到泰国陆运路线:https://www.goluckyvip.com/tag/104168.html
爆单:https://www.goluckyvip.com/tag/10417.html
陆运陆运泰国:https://www.goluckyvip.com/tag/104172.html
泰国直邮陆运:https://www.goluckyvip.com/tag/104173.html
2024深圳龙岗区文化馆免费音乐培训课程安排+报名方式:https://www.vstour.cn/a/366181.html
Keep上市后首份财报:亏损同比收窄55.7% :https://www.kjdsnews.com/a/1836654.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流