div线条
今天同事问我一个问题 div线条
他写
[php]<style type="text/css">
#line{height:3px!important; background:#F00;}
</style>[/php]
ie6不兼容
后来他自己鼓捣出来
这么写的
[php]<style type="text/css">
#line{height:3px!important; background:#F00;line-height:1px;}
</style>
<div id=”line”> </div>[/php]
还有种显示的方法
[php]<style type="text/css">
#line{height:3px!important; background:#F00;font-size:0px;}
</style>[/php]
这样好点 div里面可以不用写空格了
其实有其他好的现实方法 用border