Element.runtimeStyle
非标准
该特性是非标准的,请尽量不要在生产环境中使用它!
概要
Element.runtimeStyle
是一个元素专有属性,和 HTMLElement.style
相似,除了其中的样式属性外,HTMLElement.style
具有更高的优先级和修改能力。runtimeStyle
不能修改 style
中的content
属性,其在旧版的IE浏览器上可用。
规范
不属于任何规范的一部分。
微软对此有一篇描述文档 has a description on MSDN.
浏览器兼容性
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help! (en-US)
特性 | Chrome | Firefox (Gecko) | Internet Explorer | Microsoft Edge | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
基本支持 | 未实现 | 未实现 | 6 | 未实现 | 未实现 | 未实现 |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
基本支持 | 未实现 | 未实现 | ? | ? | 未实现 |