今天向大家展示css的魅力一张是gif的图片,一张是用css把许多的图片构建起来的table的,但从外表上看,你都看不出有什么不同,这个就是css的魅力。
URL:http://www.khmerang.com/csslab/bargraphs/bargraph.html
.bargraph {
font: 0.6em/2em Arial;
color: #ddb;
border-collapse: collapse;
width: 476px;
}
.bargraph td {
padding:0;
margin:0;
vertical-align:bottom;
text-align:center;
background: #2d271c url(gridline.gif) 15px bottom;
}
.bargraph th {
background: #2d271c;
}
.bargraph img{
display:block;
border-right: 1px solid #000;
}