• hack


    all IE:

    Selector{property:value9;}

    IE7:

    *+html Selector{property:value;}

    *:first-child+html Selector {property:value;}

    Selector {*property:value;}

    Selector {+property:value;}

    IE7,IE7-:

    *body Selector {+property:value;}

    IE8:

    @media screen {Selector{property:value;}}

    IE8+:

     Selector {property: value;}

    IE8/9/10:

     Selector {property: value9;}

    IE10:

    @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
      Selector {property: value;} /* for IE10+ 此写法可以适配到高对比度和默认模式,故可覆盖所有ie10的模式 */
    }

    IE9、10、火狐、谷歌:

    :root Selector {property: value;}

    Firefox火狐(支持所有Gecko内核的浏览器,包括火狐):

    @-moz-document url-prefix() { Selector { property: value; } }

    谷歌:

    @media screen and (-webkit-min-device-pixel-ratio: 0) { Selector { property: value; } }

  • 相关阅读:
    [实战]MVC5+EF6+MySql企业网盘实战(11)——新建文件夹2
    [实战]MVC5+EF6+MySql企业网盘实战(10)——新建文件夹
    FMXUI
    x-superobject
    mORMot
    NativeXml
    superobject
    jsondataobjects
    QDAC
    DIOCP
  • 原文地址:https://www.cnblogs.com/BaishangBloom/p/4643149.html
Copyright © 2020-2023  润新知