How do I get the nth child of an element using CSS2 selectors?

后端 未结 2 912
Happy的楠姐
Happy的楠姐 2020-11-29 07:41

Is there any possibility to get the nth element of an ordered list in CSS2?

(similar to :nth-child() in CSS3)


FYI: I\'m trying to program

2条回答
  •  星月不相逢
    2020-11-29 08:09

    No you can't. nth-child() got introduced in CSS3 , so I don't think that there is an way around that problem.

    • http://www.w3.org/TR/selectors/#nth-child-pseudo

提交回复
热议问题