ul li:nth-child(odd){background-color:green;}/设置单行样式/
ul li:nth-child(even){background-color:gray}/设置双行样式/
ul li:nth-child(3n){background-color:green;}/* 3,6,9,12… */
ul li:nth-child(4){background-color:green;}/单独设置第四个li/
ul li:nth-child(3n+2){background-color:green;}/匹配2,5,8,11…/
ul li:nth-child(n+6){background-color:green;}/从第六个li开始匹配/
ul li:nth-child(-n+6){background-color:green;}/匹配1-6的元素/
ul li:nth-child(n+3):nth-child(-n+5){background-color:green;}/匹配3-5的元素/
ul li:nth-child(3n-1){background-color:green;}/匹配(3-1),(6-1),(9-1)…/