Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道这个功能会在ie 6中工作吗,我目前可以在我的机器上安装ie6
$(function(){ $('#slides-thumbs li:first a').each(function(){ $(this).removeAttr('rel'); }) })
我关心的是:首先
是的,它将毫无问题地工作。jQuery 旨在跨浏览器工作,IE6 也不例外。
许多可以用于 jQuery 的选择器都是从 CSS3 借来的,所以如果你在 CSS 中使用它们,IE6 就会出现问题。但是,:first它是一个 jQuery 扩展,而不是 CSS 的一部分,因此在这里并不完全相关。
:first
例如,:first-childCSS 选择器在 IE6 中不起作用,但在用作 jQuery 选择器的一部分时可以正常工作,即使在 IE6 中也是如此。
:first-child