如何在css中编辑onmouseover事件
展开全部
给您截段代码吧 希望对您有所帮助
<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>
<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>
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询