📜  javascript 样式元素 - Javascript 代码示例

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

代码示例3
element.style.backgroundColor = "red";   // set the background color of an element to red