HTML CSS JS

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

code_learner 2021. 9. 15. 15:04

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

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