CSS中IE 6 7 与火狐兼容

  • 使用符号 * _ 区分 火狐 IE6 IE7

test{
background-color:#000000;
*background-color:#009966;
_background-color:#FF0000;
}

*  IE 7 会优先解析

_  IE 6 会优先解析

* _  火狐不识别

  • 使用!important 区别 IE 火狐

test{
background-color:#000000 !important;
background-color:#009966;
}

!important 火狐优先识别,IE不识别

IE8与火狐已经很像了,因为微软的浏览器自己都不兼容自己,所以css程序员们很火大,我也很火大

转载标明出处: hellokeykey.com

《CSS中IE 6 7 与火狐兼容》有2个想法

评论已关闭。