CSS新增僞類

    :first-of-type p:first-of-type 選擇屬於其父元素的首個 <p> 元素       :last-of-type p:last-of-type 選擇屬於其父元素的最後一個<p> 元素   :only-of-type p:only-of-type 選擇屬於其父元素唯一的 <p> 元素   :only-child p:only-child 選擇屬於其父元素的唯一子元素
相關文章
相關標籤/搜索