Polyfill for css :target, not(), and [tilde] sibling selectors?

拟墨画扇 提交于 2019-12-20 02:48:09

问题


I'd like to start using the css :target, not() and ~ sibling selectors now. Is there a polyfill or some other solution for these? I'd prefer to be able to simply use the css for them over using js/jQuery to simulate them for every use.


回答1:


IE9.js polyfills everything you're looking for.

http://ie7-js.googlecode.com/svn/test/index.html




回答2:


This one also does the work: http://selectivizr.com/



来源:https://stackoverflow.com/questions/6190456/polyfill-for-css-target-not-and-tilde-sibling-selectors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!