css3怎么设置奇数个的li背景色??借助CSS3选择器:nth-child(2n+1)即可<style>.list li:nth-child(2n+1) {background: #39f}<style>&l2023-02-19html-css250