スタイルシートで使い始めると便利な何番目(n番目)の備忘録です。
種類 -child -of-type
最初 :first-child :first-of-type
最後 :last-child :last-of-type
n番目 :nth-child(n) :nth-of-type(n)
後ろからn番目 :nth-last-child(n) :nth-last-of-type(n)
1個だけ :only-child :only-of-type
参考URLhttps://qiita.com/ituki_b/items/62a752389385de7ba4a2