How to skip first child?

后端 未结 6 855
误落风尘
误落风尘 2020-12-03 02:30

one

two

three

6条回答
  •  感动是毒
    2020-12-03 03:00

    :nth-child(1n+2) worked well for me. This skips the first child and continues to the rest of the elements.

    p:nth-child(1n+2){
      color: red; 
    }
    

    Hope this helps.

提交回复
热议问题