티스토리 뷰

공부

[CSS] <tr> odd & even

승가비 2020. 8. 21. 22:53
728x90
tr:nth-child(even) {background: #CCC}
tr:nth-child(odd) {background: #FFF}

https://www.w3.org/Style/Examples/007/evenodd.en.html

 

CSS: even and odd rules

Even and odd rules One way to improve the readability of large tables is to color alternating rows. For example, the table below has a light gray background for the even rows and white for the odd ones. The rules for that are extremely simple: tr:nth-child

www.w3.org

 

728x90

'공부' 카테고리의 다른 글

[Date] format  (0) 2020.08.21
[HDFS] copy local to remote  (0) 2020.08.21
[mod_jk] Apache X SpringBoot(tomcat)  (0) 2020.08.21
[Sh] loop  (0) 2020.08.21
[Spark] collect_list order by  (0) 2020.08.21
댓글