您的位置:首页 > Web前端 > CSS

[整理]css中如何写入onmouseover和onmouseout事件

2008-12-30 15:09 411 查看
[整理]css中如何写入onmouseover和onmouseout事件

<style>
.button-normal
{
border:groove 1px #ffffff;
border-bottom:groove 1px #666666;
border-right:groove 1px #666666;
background-image:url(button-bg03.gif);
background-repeat:repeat-x;
background-color:Transparent;
height:20px;
event:expression(
onmouseover = function()
{
this.style.backgroundColor='red'
},
onmouseout = function()
{
this.style.backgroundColor='#ffffff'
}
)

}

</style>
<body>
<input type=button value="click me" class="button-normal">
</body>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐