CSS hack写法
书写顺序为FireFox在最前,其次是IE8、IE7,最后是IE6。
color:red;//所有浏览器
color:blue\9;//所有IE
+color:orange;//IE7
_color:green;//IE6
若浏览器为FireFox,那么color:red;若浏览器为IE8,根据CSS优先性原则,color:blue;若为IE7,color:orange;若为IE6,则color:green。
IE6识别 * 、_
IE7识别 * 、+
IE8识别 * 、/9
FF什么都不识别
评论列表: