nth-child的even
时间: 2023-10-22 15:03:07 浏览: 100
CSS-nth-child
nth-child的even指的是匹配同一父元素下的同级元素中的偶数个元素。具体用法是使用关键字even。例如,li:nth-child(even)可以匹配同一父元素下的所有偶数个li元素。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [JQ行选择 CSS3伪类选择器:nth-child()](https://blog.csdn.net/jxdwuao/article/details/83882312)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [nth-child 与 nth-of-type](https://blog.csdn.net/weixin_65874102/article/details/127781598)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文