How do I hide only the first element of a type?

后端 未结 5 1342
一个人的身影
一个人的身影 2021-01-11 19:13

I have the following markup:

Title

Title

5条回答
  •  滥情空心
    2021-01-11 19:57

    They are both technically the first-child.

    In your example, you could do:

    .ctr-1 > h3:first-child { display:none; }
    

提交回复
热议问题