Dreamweaver中背景色处理

来源:百度知道 编辑:UC知道 时间:2024/06/01 04:00:20
插入表单,表单中插入表格,表格中背景色为绿色,如何使其在鼠标放置在表格里时背景色变红,放开后变回来
鼠标经过的图像只适用图片,这个是背景色不是图片。。

给你所要变化的单元格<td>加一段脚本代码
<td onmouseover="this.style.backgroundColor='red'" onmouseout="this.style.backgroundColor=''">

内容部分

</td> 这样就可以实现了

<table>
<tr>
<td onmouseover="this.style.backgroundColor='red'" onmouseout="this.style.backgroundColor=''">
</td>
</tr>
</table>
用得焦和失焦的事件可以完成的~~~

用css控制的。学学,脚本也可以

你可以在一个试试看````