【问题标题】:Is using nth Child selectors in jQuery dependent on browser support for CSS3?在 jQuery 中使用第 n 个子选择器是否依赖于浏览器对 CSS3 的支持?
【发布时间】:2023-03-10 15:25:01
【问题描述】:

或者当 IE6/IE7 被大量使用时使用安全吗?

【问题讨论】:

  • 是的,你可以使用它,它适用于IE6/IE7。

标签: jquery css jquery-selectors css-selectors


【解决方案1】:

jQuery 背后的整个想法是它规范了浏览器之间的行为。一切都应该在the "compatible" list 上的任何浏览器上都能正常工作,包括 IE6 及更高版本。

但是,请注意,将来可能会将浏览器添加到兼容列表中或从兼容列表中删除;例如,jQuery 2.0 will only support IE 9 or later

【讨论】:

【解决方案2】:

不,jQuery 选择器实现不依赖于 CSS3 支持。

是的,您可以使用 IE6/7 中的所有 jQuery 功能。 jQuery 可在 IE 6.0+、FF 10+、Safari 5.0+、Opera、Chrome 中使用,如其网站所述。

【讨论】:

    猜你喜欢
    • 2011-05-28
    • 2014-02-01
    • 2019-11-17
    • 1970-01-01
    • 1970-01-01
    • 2012-04-03
    • 1970-01-01
    • 2012-04-30
    • 1970-01-01
    相关资源
    最近更新 更多