小光哥
2015-04-20 18:09
mychar.style.backgroundColor="#CCC";不加Color也可以变色的,但是不通过,为什莫???
background 属性在一个声明中设置所有的背景属性。
Object.style.background=background-color background-image
background-repeat background-attachment background-position
也就是说如果用background可以同时设置多个背景属性。
不通过是可能是因为这里只验证有没有backgroundColor。
JavaScript入门篇
741030 学习 · 9691 问题
相似问题