css的 nth-child, first-child, last-child

選取第n個標籤,n從1開始

選取大於等於4的標籤

選取小於等於4的標籤

選取偶數個,2n也可以用even

選取奇數個,2n-1也可以用even

表示隔兩個選一個標籤

選取最後一個標籤

選取倒數第n個標籤
  1. :nth-last-child(n)  

選取第1個標籤

留言