positive lookahead in css

后端 未结 2 1771
走了就别回头了
走了就别回头了 2021-02-14 15:41

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:16

    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)
    

提交回复
热议问题