简体   繁体   English

IE8中的CSS选择器attr * =支持

[英]CSS selector attr *= support in IE8

I noticed selectivizr does not support [attr*=] using jQuery. 我注意到selectivizr不支持使用jQuery的[attr * =]。

Any ideas on how I could support the following selector in ie8? 关于如何在ie8中支持以下选择器的任何想法?

a:not([class*="st-"])

Quote from w3schools : 引用w3schools

Note: IE8 and earlier do not support the :not selector. 注意:IE8和更早版本不支持:not选择器。

I believe that's the only bit that doesn't work in IE8. 我相信这是唯一在IE8中不起作用的功能。

The [attribute*=value] selector is supported in all major browsers. 所有主要浏览器均支持[attribute * = value]选择器。

Note: For this selector to work in IE8 and earlier, a <!DOCTYPE> must be declared. 注意:为了使此选择器在IE8及更早版本中起作用,必须声明<!DOCTYPE>

So if you have Selectivizr to fix the :not() part, I don't see why it shouldn't work. 因此,如果您有Selectivizr来修复:not()部分,我不明白为什么它不起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM