27
2019
03

li标签实现隔行不同行颜色不一样(奇数行、偶数行)

<style>

#list li:nth-of-type(odd){ background:#00ccff;}奇数行 

#list li:nth-of-type(even){ background:#ffcc00;}偶数行 

</style>


<div>

    <ul id="list">

    <li>1</li>

«1»