Combining :nth-of-type() and :not

后端 未结 3 664

I have a strange case of trying to combine two pseudoclasses: :not and :nth-of-type() to get rainbow striping on non-hidden items

Having a

3条回答
  •  感动是毒
    2020-12-22 03:25

    CSS parses right-to-left. Have you tried flip-flopping the :not and :nth-of-type?

    Why do browsers match CSS selectors from right to left?

提交回复
热议问题