隔行变色

用CSS3,可以简单解决隔行变色:
nth-child(2n)2的倍数,或者nth-child(odd),nth-child(even)这两个是匹配奇偶。
原文地址:https://www.cnblogs.com/ytup/p/5276187.html