Definir vários CSs usando DOM
document.getElementById("myElement").style.cssText = "display: block; position: absolute";
Tired Teira
document.getElementById("myElement").style.cssText = "display: block; position: absolute";
Object.assign(yourelement.style,{fontsize:"12px",left:"200px",top:"100px"});