Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- db.json
- first-child
- toString
- 자바스크립트
- JSON
- line-through
- 카우치코딩
- 인라인블럭
- foreach
- React state
- Redux
- useSearchParams
- 6주포트폴리오
- React onClick
- javascript코딩테스트
- couchcoding
- react redux
- JavaScript
- javascript React
- Redux store
- useEffect
- sort
- redux toolkit
- 협업프로젝트
- react
- 블럭요소
- 콜백함수
- redux 사용방법
- useParams
- 자바스크립트배포
Archives
- Today
- Total
목록nth-of-type (1)
개발하는 루루언니

nth-child 를 주어 순서를 주었을때 모습이다. .box div:nth-child(1){ background-color: blue; } .box div:nth-child(2){ background-color: red; } .box div:nth-child(3){ background-color: white; } .box div:nth-child(4){ background-color: gold; } nth-child를 해줘서 순서를 정해준 후 맞췄는데 만약 내가 h1 태그를 하나 더 추가한다고 하면? 추가했어요 이렇게 순서가 변하면서 색상도 변해버린다. 그럼 어떻게 해야할까 nth-of -type : 태그를 구별한다. .box div:nth-of-type(1){ background-color: blue..
컴퓨터 정보/css
2022. 11. 29. 17:03