在线看片电视剧免费看,精品国产一区二区三区2021,99久久久无码国产精品免费,精品人妻少妇嫩草AV无码专区

    電話(huà)

    0411-39943997

仟億科技
客服中心
  • 電話(huà)
  • 電話(huà)咨詢(xún):0411-39943997
  • 手機
  • 手機咨詢(xún):15840979770
    手機咨詢(xún):13889672791
網(wǎng)絡(luò )營(yíng)銷(xiāo) >更多

CSS hack區別不同瀏覽器常用寫(xiě)法

作者:billionnet 發(fā)布于:2013/7/24 10:49:36 點(diǎn)擊量:

區別不同瀏覽器的CSS hack寫(xiě)法:
    區別IE6與FF:
    background:orange;*background:blue;
    區別IE6與IE7:
    background:green !important;background:blue;
    區別IE7與FF:
    background:orange; *background:green;
    區別FF,IE7,IE6:
    background:orange;*background:green !important;*background:blue;
    注:IE都能識別*;標準瀏覽器(如FF)不能識別*;
    IE6能識別*,但不能識別 !important,
    IE7能識別*,也能識別!important;
    FF不能識別*,但能識別!important;
    IE6 IE7 FF
    * √ √ ×
    !important × √ √
    ------------------------------------------------------
    另外再補充一個(gè),下劃線(xiàn)"_",
    IE6支持下劃線(xiàn),IE7和firefox均不支持下劃線(xiàn)。
    IE6 IE7 FF
    * √ √ ×
    !important × √ √
    _ √ × ×
    于是大家還可以這樣來(lái)區分IE6,IE7,firefox
    : background:orange;*background:green;_background:blue;
    注:不管是什么方法,書(shū)寫(xiě)的順序都是firefox的寫(xiě)在前面,IE7的寫(xiě)在中間,IE6的寫(xiě)在最后面。
    下面再看一些常用的
    .all-IE{property:value9;}
    :root .IE-9{property:value/;}
    .gte-IE-8{property:value;}
    .lte-IE-7{*property:value;}
    .IE-7{+property:value;}
    .IE-6{_property:value;}
    .not-IE{property//:value;}
    @-moz-document url-prefix() { .firefox{property:value;} }
    @media all and (-webkit-min-device-pixel-ratio:0) { .webkit{property:value;} }
    @media all and (-webkit-min-device-pixel-ratio:10000),not all and (-webkit-min-device-pixel-ratio:0) { .opera{property:value;} }
    @media screen and (max-device-width: 480px) { .iphone-or-mobile-s-webkit{property:value;} }
    IE8 最新css hack:   "9" 例:"border:1px 9;".這里的"9"可以區別所有IE和FireFox.   "" IE8識別,IE6、IE7不能.   "*" IE6、IE7可以識別.IE8、FireFox不能.   "_" IE6可以識別"_",IE7、IE8、FireFox不能.
    IE6 hack
    _background-color:#CDCDCD; /* ie 6*/
    IE7 hack
    *background-color:#dddd00; /* ie 7*/
    IE8 hack
    background-color:red ; /* ie 8/9*/
    IE9 hack
    background-color:blue 9;



分享到:


Copyright@ 2011-2016 版權所有:大連千億科技有限公司 遼ICP備11013762-3號   google網(wǎng)站地圖   百度網(wǎng)站地圖   網(wǎng)站地圖

公司地址:大連市沙河口區中山路692號辰熙星海國際2317 客服電話(huà):0411-39943997 QQ:2088827823 37482752

法律聲明:未經(jīng)許可,任何模仿本站模板、轉載本站內容等行為者,本站保留追究其法律責任的權利! 隱私權政策聲明

在线最新av免费费观看| 伊伊综合在线视频无码| 精产国品一二三产区区别| JAPANESE国产在线观看播放| 在线精品一区二区三区| 国产在线精品一区二区中文|