Find tags using css selector but not their descendants

后端 未结 1 1290
终归单人心
终归单人心 2021-01-16 00:11

I\'m trying to find tags meeting some condition but just those on the first level (relatively) (not their children etc.). I don\'t want to

相关标签:
1条回答
  • 2021-01-16 01:04

    Something like this could do the trick:

    *:not([id*=example]) > [id*=example]
    

    http://codepen.io/anon/pen/EVxYjE

    0 讨论(0)
提交回复
热议问题