上述的HTML结构中, <div class="test"> 的第二个子元素是p元素,所以满足条件,B元素就被中了。 jQuery 1.9新增了 :nth-of-type() 选择器,和这个 :nth-child() 比较 ...
確定! 回上一頁