00问答网
所有问题
CSS中如何选择ul下li的奇数,偶数行
如题所述
举报该问题
推荐答案 2018-05-26
li:nth-of-type(odd) {......} /*--这是奇数行--*/
li:nth-of-type(even) {......} /*--这是偶数行--*/
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://00.wendadaohang.com/zd/DTTTjBD0TjeTDTIDTeT.html
相似回答
大家正在搜
相关问题
css3怎么设置奇数个的li背景色??
怎么用CSS选择ul里最后一个li里面的a元素
css样式,用ul和li来进行布局的,想知道怎么让每个ul里...
怎么在css中让ul里的li自动换行排列
div+css中的ul li怎样写这种列表?
css如何修改<ul>中第二个<li>、第三个<li>的字体...
css中ul下的li下的用ul写的二级菜单为什么下不来,并和...
ul怎么用css实现下拉