下列关于jQuery选择器说法错误的是()
A: 使用:only-child选择器只能获取一个子元素
B: pre ~ siblings 选择器与siblings( )方法的使用效果一致
C: first -child与:first 选择器都能用来获取ul下的li元素
D: parent>child选择器与children( )方法使用的效果一致
A: 使用:only-child选择器只能获取一个子元素
B: pre ~ siblings 选择器与siblings( )方法的使用效果一致
C: first -child与:first 选择器都能用来获取ul下的li元素
D: parent>child选择器与children( )方法使用的效果一致
举一反三
- 下列有关jQuery选择器的说法错误的是 A: 使用:only-child选择器只能获取一个子元素 B: first-child与:first选择器都能用来获取ul列表下的li元素 C: prev~siblings选择器与siblings()方法的使用效果一致 D: parent>child选择器与children()方法的使用效果一致
- first -child选择器只能获取父级元素下的一个子元素。
- 在jQuery兄弟选择器中,prev~siblings选择器与siblings()方法的使用效果一致。
- CSS3中,如果某个父元素仅有一个子元素,则使用()选择器不能选择这个子元素。 A: :nth-child(1) B: :last-child C: :child D: :only-child
- 用于在给定的祖先元素下匹配所有的后代元素的选择器是? A: ancestor descendan选择器 B: parent>child选择器 C: prev+next选择器 D: prev~siblings选择器