aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/stylepropertymap/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/stylepropertymap/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/api/stylepropertymap/index.html')
-rw-r--r--files/zh-cn/web/api/stylepropertymap/index.html56
1 files changed, 56 insertions, 0 deletions
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
+---
+<p>{{APIRef("CSS Typed Object Model API")}} {{SeeCompatTable}}</p>
+
+<p><a href="/zh-CN/docs/Web/API/CSS_Typed_Object_Model_API">CSS 类型对象模型 API</a> 的 <strong><code>StylePropertyMap</code></strong> 接口提供了 CSS 声明块的表示,该声明块可以替代 {{DOMxRef("CSSStyleDeclaration")}}。</p>
+
+<p>{{InheritanceDiagram}}</p>
+
+<h2 id="属性">属性</h2>
+
+<p><em>从其父级 {{DOMxRef("StylePropertyMapReadOnly")}} 继承属性。</em></p>
+
+<h2 id="方法">方法</h2>
+
+<p><em>从其父级 {{DOMxRef("StylePropertyMapReadOnly")}} 继承方法。</em></p>
+
+<dl>
+ <dt>{{DOMxRef( "StylePropertyMap.append()")}}</dt>
+ <dd>使用给定的属性和值向 <code>StylePropertyMap</code> 添加新的 CSS 声明。</dd>
+ <dt>{{DOMxRef( "StylePropertyMap.clear()")}}</dt>
+ <dd>删除 <code>StylePropertyMap</code> 中的所有声明。</dd>
+ <dt>{{DOMxRef( "StylePropertyMap.delete()")}}</dt>
+ <dd>使用给定属性删除 CSS 声明。</dd>
+ <dt>{{DOMxRef( "StylePropertyMap.set()")}}</dt>
+ <dd>使用给定属性更改 CSS 声明。</dd>
+</dl>
+
+<h2 id="规范">规范</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">规范</th>
+ <th scope="col">状态</th>
+ <th scope="col">备注</th>
+ </tr>
+ <tr>
+ <td>{{SpecName("CSS Typed OM", "#stylepropertymap", "StylePropertyMap")}}</td>
+ <td>{{Spec2("CSS Typed OM")}}</td>
+ <td>Initial definition.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+
+
+<p>{{Compat("api.StylePropertyMap")}}</p>