plusieurs style sur un element javascript

56

plusieurs style sur un element javascript -

document.getElementById("myElement").style.cssText = "display: block; position: absolute";

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

Comments

Submit
0 Comments