当前位置: 代码迷 >> HTML/CSS >> 请教怎么画一条横线
  详细解决方案

请教怎么画一条横线

热度:712   发布时间:2012-02-03 22:02:47.0
请问如何画一条横线?
您好,请问如何画一条横线?我使用的是
<div style="margin:0;padding:0; width:580px;height:1px;background-color:#303030;"></div>
在IE7正常现示,但是在IE6中无法识别高度,请问为什么,该如何实现?谢谢!

------解决方案--------------------
加overflow属性即可
<div style="margin:0;padding:0; width:580px;height:1px;background-color:#303030;overflow:hidden;"> </div>
  相关解决方案