日期:2014-05-17  浏览次数:20603 次

请教一个css的问题
#searchform label {
position: absolute;
top: 2px;
top: 4px\9;
left: 10px;
line-height: 27px;
line-height: 26px\9;
height: 27px;
height: 26px\9;
background: #fff;
cursor: text;
overflow: hidden;
}

请问以上代码中“\9”怎么解释?(新手请大家不吝赐教)
------解决方案--------------------
专门为IE9写的样式。。。
------解决方案--------------------
参考下
http://www.cnblogs.com/WuQiang/archive/2011/08/23/2150240.html
------解决方案--------------------
css属性后面跟“\9”这样 IE 6/7/8/9 能认出这个属性,其他浏览器会忽略这个属性。
他的意思是 在IE 6789用 top:4px;其他浏览器用top:2px; 
因为IE6789先认出top:2px;接着又认出top:4px; 那么自然就覆盖了前面的top:2px;
其他的一样道理。