当表格单元格有一下拉菜单(图层),当鼠标在单元格和下拉菜单时,如何改变单元格的颜色?

heyday 2002-06-20 11:17:16
同上
...全文
48 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
heyday 2002-06-21
  • 打赏
  • 举报
回复
那在下拉的菜单呢?你的menul1~4不会是下拉菜单吧
qiushuiwuhen 2002-06-21
  • 打赏
  • 举报
回复
<table border width=100>
<td bgColor=red onmouseover=this.runtimeStyle.backgroundColor="highlight" onmouseout=this.runtimeStyle.backgroundColor="">menu1</td>
<td bgColor=red onmouseover=this.runtimeStyle.backgroundColor="highlight" onmouseout=this.runtimeStyle.backgroundColor="">menu2</td>
<td bgColor=red onmouseover=this.runtimeStyle.backgroundColor="highlight" onmouseout=this.runtimeStyle.backgroundColor="">menu3</td>
<td bgColor=red onmouseover=this.runtimeStyle.backgroundColor="highlight" onmouseout=this.runtimeStyle.backgroundColor="">menu4</td>
</table>

87,996

社区成员

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

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