在css中可以使用event:expression绑定js脚本,但是只在IE下有效,在Firefox下无效。
.test{
event:expression(
on-mouse-over = function(){
alert("test")
},
on-mouse-out = function(){
this.style.backgroundColor='#000000'
}
)
}