📅  最后修改于: 2022-03-11 15:02:59.055000             🧑  作者: Mango
// Getting the element first
var myElement = document.querySelector("#myElement");
// examples for updating styles
myElement.style.color = "blue";
myElement.style.backgroundColor = "red";