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

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

I have the following markup:

Title

Title

5条回答
  •  余生分开走
    2021-01-11 19:47

    You have wrong, ctr doesn't exist, and you need to tell with > to select the first element level in your page selector try this:

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

提交回复
热议问题