急,请问一个css的问题?

来源:百度知道 编辑:UC知道 时间:2024/05/15 16:32:47
急,请问一个css的问题?

<tr onmouseover="style.backgroundColor='#f3f3f3'"
style="BACKGROUND-COLOR: #ffffff" onmouseout="style.backgroundColor='#ffffff'" >

第一句:onmouseover="style.backgroundColor='#f3f3f3'" style="BACKGROUND-COLOR: #ffffff"
第一句是老鼠移过去的时候背景设置为#f3f3f3,可为什么后面再把背景设置为#ffffff啊?

然后再请问style.backgroundcolor和style=background-color有什么区别?

第一句是老鼠移过去的时候背景设置为#f3f3f3,后面再把背景设置为#ffffff我想应该是默认时候的背景颜色吧!
至于style.backgroundcolor和style=background-color,第一是onmouseover函数里面的语句,就是backgroundColor的style为#f3f3f3!而style=background-color纯粹是一个样式语句!