【发布时间】:2018-08-16 09:03:37
【问题描述】:
我试图在鼠标悬停时用一个 td 替换三个 td: Sample code in JSFiddle
<html>
<body>
<table border="1">
<tr onmouseover="this.innerHTML='<td colspan=3>ABC</td>'" onmouseout="this.innerHTML='<td>A</td><td>B</td><td>C</td>'">
<td>A</td>
<td>B</td>
<td>C</td>
</tr>
</table>
</body>
鼠标悬停有效,但鼠标移出被忽略。
【问题讨论】:
标签: javascript html-table onmouseover onmouseout