一个DREAMWEAVER的问题!~望大虾求教!

来源:百度知道 编辑:UC知道 时间:2024/07/02 11:01:35
<title>32</title><table width="640" border="1">
<tr onmouseout="this.style.backgroundcolor='#ff6666'"onmouseover="this.style.backgroundcolor='#ff0000'">
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr >
<td> </td>
<td>  </td>
<td> </td>
</tr>
<tr onmouseout="this.style.backgroundColor='#ffcccc'"onmouseover="this.style.backgroundcolor='#666666'">
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
一条可以当鼠标移去框架时另其变色的指令。。
onmouseout="this.style.backgroundColor='#ffcccc'"onmouseover="this.style.backgroundcolor='#666666'
怎么没反应?!难道

你没有空格吧。如:
onmouseout="this.style.backgroundColor='#ffcccc'" onmouseover="this.style.backgroundcolor='#666666'

onmouseout="this.style.backgroundColor='#ff6666'"onmouseover="this.style.backgroundColor='#ff0000'"这样是对的,backgroundColor中的c是大写,还有你把<td>和</td>中间的空格不要去,就出来效果了。