你相信以下的BAR图表是用CSS实现的吗? [ 2006-10-19 22:33:31 | 作者: 游仰泳的金鱼 ] [Basic CSS Bar Graph] This is a simple bar graph we developed for a tool we're releasing shortly for our client. The concept is simple, utilize the percentage width abilities of CSS to accurately portray a percentage bar graph. <style> .graph { position: relative; /* IE is dumb */ width: 200px; border: 1px solid #B1D632; padding: 2px; } .graph .bar { display: block; position: relative; background: #B1D632; text-align: center; color: #333; height: 2em; line-height: 2em; } .graph .bar span { position: absolute; left: 1em; } </style> <div class="graph"> <strong class="bar" style="width: 25%;">25%</strong> </div>