CSS 가상선택자

CHOI-sy·2023년 9월 17일
0

CSS

목록 보기
1/2
post-thumbnail

CSS 선택자

:nth-child(N) = 부모안에 모든 요소 중 N번째 요소

A:nth-of-type(N) = 부모안에 A라는 요소 중 N번째 요소

:first-child = 부모안에 모든 요소 중 첫번째 요소

:last-child = 부모안에 모든 요소 중 마지막 요소

A:first-of-type = 부모안에 A라는 요소 중 첫번째 요소

A:last-of-type = 부모안에 A라는 요소 중 마지막 요소

nth-child

nth-child

nth-child

nth-of-type

nth-of-type

nth-of-type

first-child

first-child

first-child

last-child

last-child

last-child

first-of-type

first-of-type

first-of-type

last-of-type

last-of-type

last-of-type

[참고](https://lalacode.tistory.com/6)

profile
안녕하세요.

0개의 댓글