Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

how to add multiple styles in javascript

Object.assign(yourelement.style,{fontsize:"12px",left:"200px",top:"100px"});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #multiple #styles #javascript
ADD COMMENT
Topic
Name
4+1 =