专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > ASP.NET

如用利用CSS,使用鼠标经过时更换背景图片,该如何解决

发布时间:2011-06-22 17:15:13 文章来源:www.iduyao.cn 采编人员:星星草
如用利用CSS,使用鼠标经过时更换背景图片
n
{
background-image:url(images/1.gif);
background-repeat:no-repeat;
background-position:center;
}
.m
{
background-image:url(images/2.gif);
background-repeat:no-repeat;
background-position:center;
}

<table height="100px" width="100px">
  <tr class="n" onmousemove="this.classname='m'" onmouseout="this.classname='n'">
  <td >aaaaa</td>
  </tr>
  </table>



这样为何没反应呢

------解决方案--------------------
onmousemove换成onmouseover
this.classname换成this.className
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: