positive lookahead in css

后端 未结 2 1839
悲&欢浪女
悲&欢浪女 2021-02-14 15:55

I know in Perl regex the notion of the positive lookahead ie q(?=u) matches a q that is followed by a u, without making the u part of the match. I\'m looking for so

2条回答
  •  温柔的废话
    2021-02-14 16:02

    Not very helpful right now but,

    In the future we could use the CSS4 selector :has() in future will help with this.

    There is no browser compatibility at all at this time.

    div:has(+div.specialClass)
    

提交回复
热议问题