How can I style even and odd elements?

后端 未结 9 2177
离开以前
离开以前 2020-11-22 10:44

Is it possible to use CSS pseudo-classes to select even and odd instances of list items?

I\'d expect the following to produce a list of alternating colors, but inste

9条回答
  •  不要未来只要你来
    2020-11-22 11:05

    Below is the example of even and odd css color apply

    
    
    
    
    
    
    

    The first Odd.

    The second Even.

    The third Odd.

    The fourth Even.

提交回复
热议问题