zoukankan      html  css  js  c++  java
  • [CSS] IE Style Target

    Ref: http://blogs.quovantis.com/browser-specific-hacks-for-frontend-developers/

    Internet Explorer

    Css hacks

    :root .selector {

    Property: Value9; color: red9;

    }

    Conditional Comments

    <!–[if IE 9]> Internet Explorer 9 <![endif]–>

    <!–[if lte IE 9]> Internet Explorer 9 or less <![endif]–>

    <!–[if gte IE 9]> Internet Explorer 9 or greater <![endif]—>

    For example:

    <!–[if IE 9]>

    <link rel=”stylesheet” type=”text/css” href=”all-ie-only.css” />

    <![endif]–>

    IE 10 and above

    _:-ms-lang(x), .selector { property:value; }

    @media screen and (-ms-high-contrast: none), (-ms-high-contrast: active) {   

    .ie10up {property: value;}

    }

    @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {    

    .ie10up {property: value;}

    }

    IE 11 and above

    _:-ms-fullscreen, :root .ie11up { property:value; }//Works for IE 11 and above

    *::-ms-backdrop, :root .selector { property:value; }//Works for IE 11

    IE 11+, Microsoft Edge Browser

    /* Put this code in external stylesheet: ie11up.css */

    @charset “&lt;Any Modern Browser but MSIE 10- or FF 18- &gt;”;  _:-ms-lang(x), .selector { property:value; }

    Javascript hacks

    var isIE = ‘behavior’ in document.documentElement.style && ‘- ms-user-select’ in document.documentElement.style;

    var isIE = window.navigator.msPointerEnabled;

    var isIE = document.body.style.msTouchAction !== undefined;

  • 相关阅读:
    MacBook Pro修改hosts
    Python WebSocket
    TCP三次握手和四次挥手过程
    Tcp三次握手和四次挥手
    常见正则表达式
    Python正则表达式
    Python使用gevent实现协程
    Tcp客户端构建流程
    AC6102开发板USB3.0测试和使用说明
    AC6102 DDR2测试工程
  • 原文地址:https://www.cnblogs.com/Answer1215/p/14862791.html
Copyright © 2011-2022 走看看