子元素选择器中匹配元素中唯一的子元素是()
A: :first-child
B: :last-child
C: :only-child
D: :nth-child
A: :first-child
B: :last-child
C: :only-child
D: :nth-child
C
举一反三
- CSS3中,如果某个父元素仅有一个子元素,则使用()选择器不能选择这个子元素。 A: :nth-child(1) B: :last-child C: :child D: :only-child
- 下面哪一个可以选取父元素中唯一的子元素( ) A: :first-child B: :last-child C: :only-child D: :nth-child(1)
- jQuery中的子元素过滤选择器中,选取父元素下的第一个元素的语法是()。 A: :first-child B: :last-child C: :only-child D: :nth-child
- 下面选项中,属于子元素过滤选择器的是 A: :first-child B: :last-child C: :nth-child(eq|index|odd|even) D: :only-child
- first -child选择器只能获取父级元素下的一个子元素。
内容
- 0
下列关于jQuery选择器说法错误的是() A: 使用:only-child选择器只能获取一个子元素 B: pre ~ siblings 选择器与siblings( )方法的使用效果一致 C: first -child与:first 选择器都能用来获取ul下的li元素 D: parent>child选择器与children( )方法使用的效果一致
- 1
若要选择指定元素的唯一元素,应使用的选择器是( )。 A: :first-child B: :last-child C: :only-child D: :only-of-type
- 2
要想匹配属于其父元素的第N个子元素,应该选择的选择器是() A: :nth-last-child(n) B: :nth-child(n) C: :first-child D: :last-child
- 3
下列有关jQuery选择器的说法错误的是 A: 使用:only-child选择器只能获取一个子元素 B: first-child与:first选择器都能用来获取ul列表下的li元素 C: prev~siblings选择器与siblings()方法的使用效果一致 D: parent>child选择器与children()方法的使用效果一致
- 4
下面过滤选择器中,()选择器的返回值是单个元素。 A: :first-child B: :last-child C: :eq(0) D: :only-child