美文网首页
css3/css2选择器兼容性

css3/css2选择器兼容性

作者: 寒梁沐月 | 来源:发表于2016-05-30 19:53 被阅读265次

    CSS 3

    浏览器 → 选择器↓ IE6 IE7 IE8 IE9 + FF 3 FF 3.5 + Safari 3.0 Safari 3.2+ Chrome 2 Opera
    E ~ F NO YES YES YES YES YES YES YES YES YES
    E[attr^="name"] NO YES YES YES YES YES YES YES YES YES
    E[attr$="name"] NO YES YES YES YES YES YES YES YES YES
    E[attr*="name"] NO YES YES YES YES YES YES YES YES YES
    E[attr]="name"] NO YES YES YES YES YES YES YES YES YES
    E:root NO NO NO YES YES YES YES YES YES YES
    E:nth-of-type NO NO NO YES NO YES NO YES YES YES
    E:nth-last-of-type NO NO NO YES NO YES NO YES YES YES
    E:first-of-type NO NO NO YES NO YES YES YES YES YES
    E:last-of-type NO NO NO YES NO YES NO YES YES YES
    E:only-of-type NO NO NO YES NO YES NO YES YES YES
    E:only-child NO NO NO YES YES YES NO YES YES YES
    E:last-child NO NO NO YES YES YES NO YES YES YES
    E:nth-child NO NO NO YES NO YES NO YES YES YES
    E:nth-last-child NO NO NO YES NO YES NO YES YES YES
    E:empty NO NO NO YES YES YES YES YES YES YES
    E:target NO NO NO YES YES YES YES YES YES YES
    E:checked NO NO NO YES YES YES YES YES YES YES
    E:selection NO NO NO YES YES只支持-MOZ- YES只支持-MOZ- YES YES YES YES
    E:enabled NO NO NO YES YES YES YES YES YES YES
    E:disabled NO NO NO YES YES YES YES YES YES YES
    E:not(s) NO NO NO YES YES YES YES YES YES YES

    CSS 2.1

    浏览器 → IE6 IE7 IE8 + FF 2 + Safari 3.0 Safari 3.2+ Chrome 2+ Opera
    * YES YES YES YES YES YES YES YES
    E > F NO YES YES YES YES YES YES YES
    E:first-child NO YES YES YES YES YES YES YES
    E:hover PARTIAL (1) YES YES YES YES YES YES YES
    E:focus NO NO YES YES YES YES YES YES
    E + F NO YES YES YES YES YES YES YES
    E[attr] NO YES YES YES YES YES YES YES
    E[attr="name"] NO YES YES YES YES YES YES YES
    E[attr~="name"] NO YES YES YES YES YES YES YES
    E:before NO NO YES YES YES YES YES YES
    E:after NO NO YES YES YES YES YES YES

    相关文章

      网友评论

          本文标题:css3/css2选择器兼容性

          本文链接:https://www.haomeiwen.com/subject/btlcdttx.html