css里也能写脚本? _css教程

网络整理 - 07-28
<style type="text/css">
.showCSS{
event:expression(
onmouseover = function()
{
this.style.backgroundColor=#f0f0f0
},
onmouseout = function()
{
this.style.backgroundColor=#ffffff
}
)
}
</style>
<div>把鼠标放上去试试看!:)</div>