part 全局属性 包含一个以元素中part属性名称组成的列表,该列表以空格分隔。通过Part 的名称,可以使用CSS伪元素“::part”来选择shadow 树中指定元素并设置其样式 。
参见用例 Shadow part 实例.
标准
Specification | Status | Comment |
---|---|---|
Shadow Parts part |
Working Draft |
浏览器兼容性
BCD tables only load in the browser
相关链接
- 所有 全局属性。
part 全局属性 包含一个以元素中part属性名称组成的列表,该列表以空格分隔。通过Part 的名称,可以使用CSS伪元素“::part”来选择shadow 树中指定元素并设置其样式 。
参见用例 Shadow part 实例.
Specification | Status | Comment |
---|---|---|
Shadow Parts part |
Working Draft |
BCD tables only load in the browser