最简单的CSS Hack: 区分 IE6 / IE7 /IE8 /Firefox

代码:
selector{
property:value; /* 所有浏览器 */
property:value\9; /* 所有IE浏览器 */
+property:value; /* IE7 */
_property:value; /* IE6 */
}

当然,注意顺序。根据CSS的优先性,上面的写法,分别针对Firefox、IE8、IE7和IE6显示值。
posted on 2009-07-20 09:34  念时  阅读(188)  评论(0编辑  收藏  举报

细节决定成败!态度决定一切!