CSS 在 IE7/IE8 中使用 :not() 伪类
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3077146/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Use :not() pseudo-class in IE7/IE8
提问by
is there any way I can get the :not()
pseudo-class to work in Internet Explorer 7/8? Is there any javascript that can do the same thing as the CSS3 :not()
?
有什么办法可以让:not()
伪类在 Internet Explorer 7/8 中工作?是否有任何 javascript 可以做与 CSS3 相同的事情:not()
?
回答by Cole
Yes, as regards JavaScript, jQuery and MooTools support the :not
pseudo-class selector.
是的,关于 JavaScript,jQuery 和 MooTools 支持:not
伪类选择器。
http://mootools.net/docs/core/Utilities/Selectors#Selector:not
http://api.jquery.com/not-selector/
http://mootools.net/docs/core/Utilities/Selectors#Selector:not
http://api.jquery.com/not-selector/
回答by Rakesh Vadnal
Try using this css3 selectors for ie:
尝试将这个 css3 选择器用于 ie: