当鼠标放到按钮上,按钮颜色改变,鼠标离开按钮时,按钮颜色恢复.怎样实现?

tyy_yun 2002-12-16 10:49:44
谢谢!
...全文
332 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
tyy_yun 2002-12-16
  • 打赏
  • 举报
回复
感谢啊!!
abin30 2002-12-16
  • 打赏
  • 举报
回复
太郁闷了吧,。 把value得值用引号括起来不就好了,
或许是你浏览器的问题。 注意引号和空格
希默软件 2002-12-16
  • 打赏
  • 举报
回复
哦,上面多打了一个字母

<input type=button value=中文 onmouseover="this.runtimeStyle.background='blue'" onmouseout="this.runtimeStyle.background=this.style.background">
希默软件 2002-12-16
  • 打赏
  • 举报
回复
<input type=button value=中文 onmouseover="this.runtimeStyle.background='blue'" onmouseout="this.runtimeStyle.background=this.style.backgroundr">
tyy_yun 2002-12-16
  • 打赏
  • 举报
回复
如果value是中文的话就不行了啊,要是value是中文,那怎样做?
谢谢
希默软件 2002-12-16
  • 打赏
  • 举报
回复
<input type=button value=runtimeStyle onmouseover="this.runtimeStyle.background='blue'" onmouseout="this.runtimeStyle.background=this.style.backgroundr">

87,996

社区成员

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

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