📅  最后修改于: 2022-03-11 15:02:59.110000             🧑  作者: Mango
document.getElementById("myElement").style.cssText = "display: block; position: absolute";
//use template literals
document.getElementById("myElement").style.cssText = `
display: block;
position: absolute;
`;