「 first-of-type 」 一覧
-
-
【CSS】first-childとfirst-of-typeの違いは?lastもnthも同じ考え方
2020/09/06 -コーディング
CSS, first-child, first-of-type, kakureblog, last-child, last-of-type, nth-child, nth-of-type, セレクタfirst-childとfirst-of-typeの違いです。この二つは似ているのでときどき混乱しますので詳しく解説します。last-childとlast-of-type、nth-childとnth-of-typeの違いもこの考え方と同じです。