css Hack技術我做了一個統表:


  IE6 IE7 IE8 IE9 Firefox Opera Google PCManCB 範例
> Y Y Y N N N N Y .type { >color: #F00; }
. Y Y N N N N N Y .type { .color: #F00; }
* Y Y N N N N N Y .type { *color: #F00; }
_ Y N N N N N N N .type { _color: #F00; }
!important N Y Y Y Y Y Y Y .type { color: #F00 !important; }
*+ Y Y N N N N N Y .type { *+color: #F00; }
                   
                   


範例:
#element {color:orange;}
#element {*color: white;    /* IE6+7, doesn't work in IE8/9 as IE7 */}
#element {_color: red;     /* IE6 */}
#element {color: green\0/IE8+9; /* IE8+9  */}
#element { color:pink \0/IE9; /* IE9 */} 

取材:http://www.blog.e-creative.tw/archives/531
arrow
arrow
    全站熱搜

    NetPC虛擬主機 發表在 痞客邦 留言(0) 人氣()