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)   :
相關文章
相關標籤/搜索