📜  更改 html 元素 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:11.596000             🧑  作者: Mango

代码示例2
element.innerHTML =  "

read this

" Change the inner HTML of an element element.style.color = "blue"; Change the style of an HTML element element.setAttribute(important, "true") Change the attribute value of an HTML element element.important = "true" Change the attribute value of an HTML element