导读:代码如下 复制代码 style type=text/CSS .showCSS{ event:expression( onmouseover = function() { this.style.backgroundColor=‘#f0f0f0‘ }, onmouseout = function() { this.style.backgroundColor=‘#ffffff‘ } ) } /style div class=showCSS把鼠标放...
代码如下
复制代码
<style type="text/CSS">
.showCSS{
event:expression(
onmouseover = function()
{
this.style.backgroundColor=‘#f0f0f0‘
},
onmouseout = function()
{
this.style.backgroundColor=‘#ffffff‘
}
)
}
</style>
<div class="showCSS">把鼠标放上去试试看!:)</div>