var a=document.getElementById("con"); a.style.color="red"; a.style.backgroundColor="#ccc"
请问为什么这里
var a=document.getElementById("con").innerHTML;
不能实现改变颜色和背景颜色呢??
数据分析师2017-09-30 23:09:11
InnerHTML problem? Can someone explain it? -PHP Chinese website Q&A-innerHTML problem? Can you please explain it? -PHP Chinese website Q&A
Please watch and learn.