src code

class method Element.getStyle

Element.getStyle(element, style) → String | null
  • style (String) – The property name to be retrieved.

Returns the given CSS property value of element. The property can be specified in either its CSS form (font-size) or its camelized form (fontSize).

This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.