【问题标题】:Use :not() pseudo-class in IE7/IE8在 IE7/IE8 中使用 :not() 伪类
【发布时间】:2011-03-05 20:44:12
【问题描述】:

有什么方法可以让:not() 伪类在 Internet Explorer 7/8 中工作?是否有任何 javascript 可以做与 CSS3 :not() 相同的事情?

【问题讨论】:

    标签: internet-explorer css css-selectors pseudo-class


    【解决方案1】:

    或者您可以使用 Dean Edwards IE7.js

    【讨论】:

      【解决方案2】:

      是的,就 JavaScript、jQuery 和 MooTools 而言,支持 :not 伪类选择器。

      http://mootools.net/docs/core/Utilities/Selectors#Selector:not
      http://api.jquery.com/not-selector/

      【讨论】:

        【解决方案3】:

        尝试将这个 css3 选择器用于 ie:

        http://selectivizr.com/

        【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2022-01-15
        • 1970-01-01
        • 1970-01-01
        • 2018-02-07
        • 1970-01-01
        • 2012-01-02
        • 2011-01-05
        • 1970-01-01
        相关资源
        最近更新 更多