我想实现把鼠标放在表格的单元格时,单元格中的文字的字体变色,如何实现。

truemichael 2000-09-01 03:38:00
...全文
350 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
xnjr 2000-10-25
  • 打赏
  • 举报
回复
用Css/Text!笨蛋!
truemichael 2000-09-04
  • 打赏
  • 举报
回复
huntout:谢谢你!看来只能用这方法了
huntout 2000-09-04
  • 打赏
  • 举报
回复
<html>
<table border=1><tr>
<td onmouseover='f1.style.color="red"' onmouseout='f1.style.color="black"'><font id=f1 color=yellow>lalala</font></td></tr></table>
</html>
hhzh426 2000-09-02
  • 打赏
  • 举报
回复
关注!
truemichael 2000-09-01
  • 打赏
  • 举报
回复
那么鼠标在单元格的没有字符的地方时,该单元格中的字符仍不会变色。
huntout 2000-09-01
  • 打赏
  • 举报
回复
<html>
<table border=1><tr>
<td><font color=yellow onmouseover='style.color="red"' onmouseout='style.color="black"'>lalala</font></td></tr></table>
</html>
truemichael 2000-09-01
  • 打赏
  • 举报
回复
huntout:你好

如果文件如下,情况好象就不一样了!
<html>
<table border=1><tr>
<td onmouseover='style.color="red"' onmouseout='style.color="black"'><font color=yellow>lalala</font></td></tr></table>
</html>
huntout 2000-09-01
  • 打赏
  • 举报
回复
<html>
<table border=1><tr>
<td onmouseover='style.color="red"' onmouseout='style.color="black"'>lalala</td></tr></table>
</html>

87,910

社区成员

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

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