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

CSS样式里使用JavaScript(onmouseover/onmouseout)

2007-09-01 10:08 543 查看
在CSS里设置触碰事件。

.title{
onmouseover: expression(onmouseover=function (){this.style.borderColor ='blue';this.style.color='red';this.style.backgroundColor ='#D4D6D0'});

onmouseout: expression(onmouseout=function (){this.style.borderColor='';this.style.color='';this.style.backgroundColor =''});
background-color:#ECEDEB;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: