selector
-
PostCSS-SelectorsWeb/CSS 2019. 10. 30. 06:30
:maches HTML link link link link link link link link CSS li:matches(:nth-child(even), .target) { background-color: blue; } Output 예상되는 결과 : 짝수child(2, 4, 6, 8)와 target class(3)에 배경화면 blue가 설정될 것이다. *even : 짝수/odd : 홀수 :not HTML link link link link link link link link HTMLHTML CSS li:not(.target) { background-color: red; } Output