본문 바로가기
HTML CSS JS

html+css) 짝, 홀수 행 마다 색이 바뀌게 하는 법

by code_learner 2021. 9. 15.

tbody tr:nth-child(even)  { background-color: #ffd4e9; }

tbody tr:nth-child(odd)   { background-color: #d4e9ff; }

댓글