dandanyajin
今天更新博客了吗?
摘要: 要求列表的奇数行与单数行的背景颜色不同 li:nth-child(2n){ background: rgba(20,55,120,0.2) } 除了上述使用较多的情况,还有 // 第一行背景有颜色 li:first-child{ background: rgba(20,55,120,0.2) } / 阅读全文
posted @ 2022-05-06 10:11 dandanyajin 阅读(65) 评论(0) 推荐(0) 编辑