僅IE識別: margin-left:10px\9;
僅IE8識別: margin-left:10px\0;
IE6/IE7識別: *margin-left:10px;
僅IE6識別: _margin-left:10px;
一、IE六、IE7都支持 *,但IE8終於迴歸正統,放棄了對*的支持
二、IE七、IE八、Firefox、Opera、Safari都支持 important
三、IE6支持下劃線,IE七、IE8和Firefox、Opera、Safari均不支持下劃線。
*+html 與 *html 是IE特有的標籤, firefox暫不支持。而*+html又爲IE7特有標籤
注意:*+html 對IE7的HACK 必須保證HTML頂部有以下聲明:
<!DOCTYPE HTML PUBLIC 「-//W3C//DTD HTML 4.01 Transitional//EN」 」http://www.w3.org/TR/html4/loose.dtd」>
!important 提高指定樣式規則的應用優先權
background-color:yellow!important;