Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 배열의 오름차순
- Array.from()
- 객체
- 배열과 연결리스트의 차이
- 범용 선택자
- nth-child()
- 고차함수
- 배열의 내림차순
- CSS
- for..of
- 단방향 연결리스트
- indexOf
- 양방향 연결리스트
- 일반 형제 선택자 결합
- 등차수열의 항 찾기
- visibility : hidden
- display : none
- 백준알고리즘
- disabled
- Sort
- Em
- 가상 요소 선택자
- map()
- classList.contains(string)
- Link
- innerhtml
- invalid assignment left-hand side
- filter()
- 쌍방향 연결리스트
- 인접 형제 선택자 결합
Archives
- Today
- Total
프론트엔드 센트럴파크 (☞゚ヮ゚)☞
가상 클래스 선택자(Pseudo-Class Selector) - first-of-type 본문
See the Pen Untitled by Jeong-Dagyeong (@jeong-dagyeong) on CodePen.
:nth-child(2n) = :nth-child(even)
=> n의 자리에 1부터 차례대로 들어가게 되는데, 짝수가 된다.
:nth-child(2n-1) = :nth-child(odd)
=> n의 자리에 1부터 차례대로 들어가게 되는데, 홀수가 된다.
'CSS' 카테고리의 다른 글
가상 클래스 선택자(Pseudo-Class Selector) - link, visited (0) | 2022.06.15 |
---|---|
가상 클래스 선택자(Pseudo-Class Selector) - :not() (0) | 2022.06.15 |
가상 클래스 선택자(Pseudo-Class Selector) - first-child (0) | 2022.06.14 |
속성 선택자(Attribute selector) (0) | 2022.06.14 |
스타일 우선순위 (0) | 2022.06.14 |
Comments