style
only gives you access to the inline style of an element. To access all the styling properties, use getComputedStyles
. More details and examples here.
1
solved Apply parts of the CSS attributs of a class to a DOM element [closed]
style
only gives you access to the inline style of an element. To access all the styling properties, use getComputedStyles
. More details and examples here.
1
solved Apply parts of the CSS attributs of a class to a DOM element [closed]