--- title: Element.currentStyle slug: Web/API/Element/currentStyle translation_of: Web/API/Element/currentStyle ---
{{APIRef("DOM")}}

{{ Non-standard_header() }}

Summary

Element.currentStyle is a property which is a proprietary similar to the standardized {{domxref("window.getComputedStyle")}} method. It is available in old versions of Microsoft Internet Explorer. However, it returns the units set in CSS while window.getComputedStyle returns the values in pixels.

Specification

Ne fait partie d'aucune spécification.

Microsoft a une description MSDN.

Compatibilité des navigateurs

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Microsoft Edge Opera Safari (WebKit)
Basic support {{ CompatNo() }} {{ CompatNo() }} 6 {{ CompatNo() }} {{ CompatNo() }} {{ CompatNo() }}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{ CompatNo() }} {{ CompatNo() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatNo() }}

Voir aussi