CSS中如何选择ul下li的奇数,偶数行

如题所述

li:nth-of-type(odd) {......}  /*--这是奇数行--*/
li:nth-of-type(even) {......}  /*--这是偶数行--*/

温馨提示:答案为网友推荐,仅供参考
相似回答