shadow host 不能被普通的选择器找到,只有 :host 、 :host() 、 :host-context() 能匹配到它。所以在 :host() 之外的 [name="test"] 是匹配不到它的。
確定! 回上一頁