src code

instance method Element#setStyle

Element#setStyle(styles) → Element

Modifies element's CSS style properties.

Styles are passed as an object of property-value pairs in which the properties are specified in their camelized form (e.g., 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.