CSS┃<li>何番目にだけスタイルを設定
:first-child または :first-of-type 一番最初の子要素を指定
:last-child または :last-of-type 一番最後の子要素を指定
:nth-child(n) または :nth-of-type(n) 何(n)番目の子要素を指定
それぞれの : の前にはpやaが入ります。
:first-child または :first-of-type 一番最初の子要素を指定
:last-child または :last-of-type 一番最後の子要素を指定
:nth-child(n) または :nth-of-type(n) 何(n)番目の子要素を指定
それぞれの : の前にはpやaが入ります。