css如何控制onmouseover事件?
发布网友
发布时间:2022-04-21 06:35
我来回答
共1个回答
热心网友
时间:2023-10-24 06:54
给您截段代码吧 希望对您有所帮助
<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>