我想实现把鼠标放在表格的单元格时,单元格中的文字的字体变色,如何实现。
问题点数:20、回复次数:8Top
1 楼huntout(猎手)回复于 2000-09-01 16:07:00 得分 0
<html>
<table border=1><tr>
<td onmouseover='style.color="red"' onmouseout='style.color="black"'>lalala</td></tr></table>
</html>Top
2 楼truemichael(Tony)回复于 2000-09-01 16:37:00 得分 0
huntout:你好
如果文件如下,情况好象就不一样了!
<html>
<table border=1><tr>
<td onmouseover='style.color="red"' onmouseout='style.color="black"'><font color=yellow>lalala</font></td></tr></table>
</html> Top
3 楼huntout(猎手)回复于 2000-09-01 16:51:00 得分 0
<html>
<table border=1><tr>
<td><font color=yellow onmouseover='style.color="red"' onmouseout='style.color="black"'>lalala</font></td></tr></table>
</html>Top
4 楼truemichael(Tony)回复于 2000-09-01 17:26:00 得分 0
那么鼠标在单元格的没有字符的地方时,该单元格中的字符仍不会变色。Top
5 楼hhzh426(春之风)回复于 2000-09-02 12:10:00 得分 0
关注!Top
6 楼huntout(猎手)回复于 2000-09-04 08:46:00 得分 20
<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>Top
7 楼truemichael(Tony)回复于 2000-09-04 08:53:00 得分 0
huntout:谢谢你!看来只能用这方法了Top
8 楼xnjr(心鹃)回复于 2000-10-25 20:03:00 得分 0
用Css/Text!笨蛋!Top




