我用onMouseOver="this.style.backgroundColor='#1b1e89'" 实现鼠标移动改变背景颜色,为什么...

caiter 2007-07-04 03:42:19
<asp:TableRow>
<asp:TableCell ></asp:TableCell>
<asp:TableCell ID="tcWhatIsBarter" align=center class="nav" onMouseOver="this.style.backgroundColor='#1b1e89'" onMouseOut="this.style.backgroundColor='#71bed4'">What Is Barter</asp:TableCell>
<asp:TableCell ></asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell ></asp:TableCell>
<asp:TableCell ID="tcBarterEconomy" align=center class="nav" onMouseOver="this.style.backgroundColor='#1b1e89'" onMouseOut="this.style.backgroundColor='#71bed4'">Barter Economy</asp:TableCell>
<asp:TableCell ></asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell ></asp:TableCell>
<asp:TableCell ID="tcIndustryStatistics" align=center class="nav" onMouseOver="this.style.backgroundColor='#1b1e89'" onMouseOut="this.style.backgroundColor='#71bed4'">Industry Statistics</asp:TableCell>
<asp:TableCell ></asp:TableCell>
</asp:TableRow>
在firefox2.0上工作正常,但在IE7下无反映,为什么?怎么修改?谢谢
...全文
955 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
zqmok 2009-09-18
  • 打赏
  • 举报
回复
IE限制脚本或ActiveX控件,

只要点击允许,就可以了。
打字员 2009-09-18
  • 打赏
  • 举报
回复
"''"
西安风影 2009-09-18
  • 打赏
  • 举报
回复
this.style.backgroundColor= '#1b1e89 '
9和'之间不要有空格,建议写代码还是规范点好。
西安风影 2009-09-18
  • 打赏
  • 举报
回复
这种问题
建议你浏览页面后,然后查看源文件 看看客户端呈现的js代码是否正确。
longzexq 2009-09-10
  • 打赏
  • 举报
回复
我也遇到了同样的问题,不知道怎样实现预期欧效果!!
浴火_凤凰 2008-05-16
  • 打赏
  • 举报
回复
帮顶!!!!!
rjzou2006 2007-07-04
  • 打赏
  • 举报
回复
没错的啊


ie6可以的
huo789 2007-07-04
  • 打赏
  • 举报
回复
写的应该没有问题
还没有装IE7
不能帮你测试,你试试IE6或者IE5

87,910

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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