问题标签 [selectivizr]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
jquery - 如何在 IE8 中使用 CSS 单选按钮(使用 selectivizr)
尝试使用 selectivizr。但我不明白它是如何工作的..
这是我连接它的方式:
style.css 在 styleie.css 相同的代码。
在 f12 模式下测试 IE 11(IE8 能力)
css - selectivizr.js 不工作 lte ie8
这是我今天的工作...... css :nth-child(odd){background-color:red;} 在 lte ie8 中不起作用
javascript - How to prevent conflict between mootools and jquery for using selectvizr?
I need to be able to support all CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8. The polyfill called selectivizr allows you to do this. It needs a javascript library such as jquery or mootools to work. The problem is that while selectivizr supports all the pseudo-classes and attribute selectors with mootools, as many as 11 of them are either not recognized or not supported with jquery. So although I have never used mootools in my life I am forced to add it to my webpage as an external script along with selectivizr in the conditional comments to detect if the webpage has been accessed from Internet Explorer 6-8 or not.
Like this:
The problem is that mootools and jquery have been known to conflict with each other. My webpage has lots of jquery all over it. Editing it all using jQuery.noConflict() is not really an option nor is wrapping all of it between
Plus I don't know if so but the presence of more than one javascript libraries that selectivizr uses may cause problems with the functionality of selectivizr itself. I think what I need to do is add some mootools code to my webpage to prevent it from conflicting with jquery and at the same time make sure that selectivizr is not detected by jquery and is only able to respond to mootools. But since I have never used mootools I don't know how to do this. Can anyone help?
P.S I don't have Internet Explorer 6-8 so I can't test this so please be careful and responsible if you give an answer.