问题标签 [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.

0 投票
0 回答
108 浏览

jquery - 如何在 IE8 中使用 CSS 单选按钮(使用 selectivizr)

尝试使用 selectivizr。但我不明白它是如何工作的..

这是我连接它的方式:

style.css 在 styleie.css 相同的代码。

在 f12 模式下测试 IE 11(IE8 能力)

0 投票
0 回答
102 浏览

html - IE7浏览器不支持伪元素(:before,:after,:last-child)

我在 IE7 浏览器中遇到了伪元素(:before,:after,:last-child)的问题。

事实上,我想画一棵看起来像这样捕获的树(IE11):

在此处输入图像描述

但是当我在(IE7)上执行我的索引时让我呈现错误:

在此处输入图像描述

有关信息,我已经使用过 Selectivizr(它是一个 JavaScript 库,可让您利用 CSS3 选择器)但不适合我!

此代码只是一个示例,看起来像我使用的项目结构(struts2,dojo):

我的风格 css :

任何帮助将不胜感激。

0 投票
0 回答
42 浏览

css - selectivizr.js 不工作 lte ie8

这是我今天的工作...... css :nth-child(odd){background-color:red;} 在 lte ie8 中不起作用

0 投票
1 回答
284 浏览

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.