我希望将onMouseOver
效果行应用于整行。
CSS:
tr:hover{
background-color: #FFEEC2;
border-width: 1px 1px 1px 1px;
border-style: solid;
border-color: #4B4B6F;
cursor: default;
}
HTML:
<table>
<tr onClick="javascript: printit();">
<td class="MenuImage"><img src="/images/print.gif" width="16" height="16"></td>
<td class="MenuCaption">Print</td>
</tr>
</table>
但悬停效果仅适用于带有打印标签的单元格。如何使悬停效果也适用于带有print.gif
图像的单元格?