๐/HTML | CSS
[CSS] nth-child ์ nth-of-type ์ ์ฐจ์ด์
dar0m!
2020. 2. 9. 23:32
- selector:nth-child(n)
- selector:nth-of-type(n)
nth-child | nth-of-type |
๋ถ๋ชจ ์๋ฆฌ๋จผํธ์ ๋ชจ๋ ์์๋ค ์ค n ๋ฒ์งธ์ ์์นํ๊ณ ํด๋น ์ ํ์์ผ ๋ ์ ์ฉ. n๋ฒ์งธ ์์นํ๋๋ฐ selector์ ๋ค๋ฅด๋ค๋ฉด css ์ ์ฉ X |
๋ถ๋ชจ ์๋ฆฌ๋จผํธ์ ํด๋น ์ ํ์์ธ ์์๋ค ์ค์์ n ๋ฒ์งธ ์๊ฒ css ์ ์ฉ. |