当表格中,当鼠标经过时,那一行的背景颜色都改变,这种情况要怎么弄?
1个回答
2011-03-09
展开全部
ight="51" border="0" cellpadding="1" cellspacing="0">
<tr>
<td onMouseOver="this.style.background='#ff6600'" onMouseOut="this.style.background='#CCCCCC';" bgcolor="#CCCCCC"> </td>
</tr>
</table>
====================
关键就是
onMouseOver="this.style.background='#ff6600'" onMouseOut="this.style.background='#CCCCCC';"
<tr>
<td onMouseOver="this.style.background='#ff6600'" onMouseOut="this.style.background='#CCCCCC';" bgcolor="#CCCCCC"> </td>
</tr>
</table>
====================
关键就是
onMouseOver="this.style.background='#ff6600'" onMouseOut="this.style.background='#CCCCCC';"
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询