From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/api/stylepropertymap/index.html | 56 +++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 files/zh-cn/web/api/stylepropertymap/index.html (limited to 'files/zh-cn/web/api/stylepropertymap/index.html') diff --git a/files/zh-cn/web/api/stylepropertymap/index.html b/files/zh-cn/web/api/stylepropertymap/index.html new file mode 100644 index 0000000000..5dbbd8c988 --- /dev/null +++ b/files/zh-cn/web/api/stylepropertymap/index.html @@ -0,0 +1,56 @@ +--- +title: StylePropertyMap +slug: Web/API/StylePropertyMap +tags: + - API + - 参考 + - 接口 +translation_of: Web/API/StylePropertyMap +--- +

{{APIRef("CSS Typed Object Model API")}} {{SeeCompatTable}}

+ +

CSS 类型对象模型 APIStylePropertyMap 接口提供了 CSS 声明块的表示,该声明块可以替代 {{DOMxRef("CSSStyleDeclaration")}}。

+ +

{{InheritanceDiagram}}

+ +

属性

+ +

从其父级 {{DOMxRef("StylePropertyMapReadOnly")}} 继承属性。

+ +

方法

+ +

从其父级 {{DOMxRef("StylePropertyMapReadOnly")}} 继承方法。

+ +
+
{{DOMxRef( "StylePropertyMap.append()")}}
+
使用给定的属性和值向 StylePropertyMap 添加新的 CSS 声明。
+
{{DOMxRef( "StylePropertyMap.clear()")}}
+
删除 StylePropertyMap 中的所有声明。
+
{{DOMxRef( "StylePropertyMap.delete()")}}
+
使用给定属性删除 CSS 声明。
+
{{DOMxRef( "StylePropertyMap.set()")}}
+
使用给定属性更改 CSS 声明。
+
+ +

规范

+ + + + + + + + + + + + + + +
规范状态备注
{{SpecName("CSS Typed OM", "#stylepropertymap", "StylePropertyMap")}}{{Spec2("CSS Typed OM")}}Initial definition.
+ +

浏览器兼容性

+ + + +

{{Compat("api.StylePropertyMap")}}

-- cgit v1.2.3-54-g00ecf