css 选择其父元素下的某个元素

一,选择器   :first-child      p:first-child(first第一个 child子元素)(找第一个子元素为p)   :last-child      p:last-child(last倒数  child子元素)(找倒数第一个子元素为p)   :first-of-type        p:first-of-type(first第一个 type类型)(找第一个p)   :
相关文章
相关标签/搜索