:first-child选择器和:first-of-type选择器的区别
:first-child 选择器匹配其父元素中的第一个子元素。 :first-of-type* 选择器匹配元素其父级是特定类型的第一个子元素。
p:first-of-type是所以特定类型p的第一个子元素;只要是该类型元素的第一个就行了,不要求是是第一个子元素了
**
string(21) "{"docs":[],"count":0}" array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) }
**
相关文章: