为什么无效???

sunshift 2005-05-31 08:56:39
为什么我的MOUSE指向和移开该行都不变颜色呢???
请高手指教···
在线等。。。。。。


<table width="760" border="0" cellpadding="5" cellspacing="1" bgcolor="#999999">
<tr onMouseOver="this.bgcolor='#0000FF';" onMouseOut="this.bgcolor='';">
<td>test............................................................</td>
</tr>
</table>
...全文
1123 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zy51 2005-05-31
  • 打赏
  • 举报
回复
this.style.backgroundColor
gzwuyh 2005-05-31
  • 打赏
  • 举报
回复
是bgColor不是bgcolor,注意大小写!
<table width="760" border="0" cellpadding="5" cellspacing="1" bgcolor="#999999">
<tr onMouseOver="this.bgColor='#0000FF';" onMouseOut="this.bgColor='';">
<td>test............................................................</td>
</tr>
</table>
mynamelj 2005-05-31
  • 打赏
  • 举报
回复
this.style.backgroundColor='#0000FF'
jonath 2005-05-31
  • 打赏
  • 举报
回复
是你写错了
<table width="760" border="0" cellpadding="5" cellspacing="1" bgcolor="#999999">
<tr onMouseOver="this.style.backgroundColor='#0000FF';" onMouseOut="this.style.backgroundColor='';">
<td>test............................................................</td>
</tr>
</table>
孟子E章 2005-05-31
  • 打赏
  • 举报
回复
this.bgColor

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧