StylePropertyMap
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
CSS 类型对象模型 API 的 StylePropertyMap 接口提供了 CSS 声明块的表示,该声明块可以替代 CSSStyleDeclaration。
属性
从其父级 StylePropertyMapReadOnly 继承属性。
方法
从其父级 StylePropertyMapReadOnly 继承方法。
StylePropertyMap.append()-
使用给定的属性和值向
StylePropertyMap添加新的 CSS 声明。 StylePropertyMap.clear()-
删除
StylePropertyMap中的所有声明。 StylePropertyMap.delete()-
使用给定属性删除 CSS 声明。
StylePropertyMap.set()-
使用给定属性更改 CSS 声明。
规范
| Specification |
|---|
| CSS Typed OM Level 1> # the-stylepropertymap> |
浏览器兼容性
Loading…