ie7 如何支持after
IT民工者 2013-03-07 03:07:05 例如:
<h1>你好</h1>,想在”你好“前后加上横线,css如下,但是在ie7下就是不显示,原因是ie7不支持after和before,有没有其他方法?高手们现下身
h1:after
{
background-color: #777;
content: "";
height: 1px;
position: absolute;
right:20px;
width: 80px;
}
h1:before
{
background-color: #777;
content: "";
height: 1px;
position: absolute;
right:20px;
width: 80px;
}