| 留言与评论(共有 0 条评论) |
发布时间:2020-04-12 09:11:32
JS方法~function(){varUL = document.getElementsByTagName('ul')[0],LI = UL.children,F;for (F = 0;F < LI.length;++F) LI[F].style.background = F % 2 ? 'white' : 'gray'}()最方便<style>li:nth-child(even){background:white}li:nth-child(odd){background:gray}</style>缺点是低版本IE不支持
| 留言与评论(共有 0 条评论) |
全站搜索