📜  plusieurs style sur un element javascript代码示例

📅  最后修改于: 2022-03-11 15:02:59.110000             🧑  作者: Mango

代码示例1
document.getElementById("myElement").style.cssText = "display: block; position: absolute";

//use template literals
document.getElementById("myElement").style.cssText = `
  display: block; 
  position: absolute;
`;