CSS3中:only-child选择器用于匹配属于某父元素的唯一子元素的元素
举一反三
- ()选择器用于匹配属于某父元素的唯一子元素的元素。
- 什么选择器匹配属于父元素中唯一子元素的元素 A: :last-of-type B: :first-of-type C: :only-of-type D: :only-child
- CSS3中,如果某个父元素仅有一个子元素,则使用()选择器不能选择这个子元素。 A: :nth-child(1) B: :last-child C: :child D: :only-child
- 匹配属于父元素中唯一子元素的 p 元素的选择器的是() A: p:nth-of-type(3) B: p: C: p:empty D: p:only-child
- 子元素选择器中匹配元素中唯一的子元素是() A: :first-child B: :last-child C: :only-child D: :nth-child