Object.style.backgroundColor 这是htm中的属性,
<button id="go" style="background-color:Maroon> Run</ button>
按我的理解button中的id及style都是button的属性,那么 style="background-color:Maroon 应该是backgroundColor,但这里用了css迷惑。
我一直就对这些属性及css名字相近或者相同感到迷惑,有没有好的资料啊。
手掌心
潇湘沐
相关分类