[Solved] Apply parts of the CSS attributs of a class to a DOM element [closed]

[ad_1]

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

[ad_2]

solved Apply parts of the CSS attributs of a class to a DOM element [closed]