.style.cssText

плюс разбивка на строки текстовой переменной

by Евгений

HTML

<div>Button</div>

JavaScript

var div = document.body.children[0];
 
  div.style.cssText="color: red !important; \
    background-color: yellow; \
    width: 100px; \
    text-align: center; \
    blabla: 5; \
  ";

  alert(div.style.cssText);