阅读背景:

检查元素是否包含#shadow-root

来源:互联网 

Is it possible to see if a Shadow DOM element exists? I'm not too concerned with manipulating it, or even really targeting it per-say. I understand the reasoning of the encapsulation. But I'd like to be able to style other elements in the regular DOM, based on whether or not the Shadow DOM element is present.Is it possible to see if a Shadow DOM element e




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: