CSS

HTML DOM (Document Object Model): CSS

變更 DOM Style 樣式

document.getElementById("myH1").style.color = "red";

element.style.backgroundColor = "red";  

參考資料