IE6 | IE7 | FF | |
* | √ | √ | × |
!important | × | √ | √ |
另外再補充一個,下劃線"_",
IE6支持下劃線,IE7和firefox均不支持下劃線。
於是大家還可以這樣來區分IE6,IE7,firefox
: background:orange;*background:green;_background:blue;
注:不管是什麼方法,書寫的順序都是firefox的寫在前面,IE7的寫在中間,IE6的寫在最後面。
safari css hack 的寫法: 在要定義樣式前面加上:body:nth-of-type(1) 如<div id="test">紅色字體</div>
safari css的寫法 :body:nth-of-type(1) #test{color:#ff0000;s}