DW制作网页导航栏时,鼠标经过导航栏背景颜色改变,如
先设置a的属性,比方说背景黑色,文字蓝色。然后在设置a的hover状态(a:hover)为红色背景,白色的字,就OK了!
温馨提示:答案为网友推荐,仅供参考
第1个回答 推荐于2016-06-28
<table width="300" border="0" cellspacing="10" cellpadding="0" bgcolor="#9966FF">
<tr>
<td bgcolor="#0066FF" onmouseover="this.style.background='#FF0000'" onmouseout="this.style.background='#0066FF'" > </td>
<td bgcolor="#0066FF" onmouseover="this.style.background='#FF0000'" onmouseout="this.style.background='#0066FF'"> </td>
<td bgcolor="#0066FF" onmouseover="this.style.background='#FF0000'" onmouseout="this.style.background='#0066FF'"> </td>
</tr>
</table>本回答被网友采纳
<tr>
<td bgcolor="#0066FF" onmouseover="this.style.background='#FF0000'" onmouseout="this.style.background='#0066FF'" > </td>
<td bgcolor="#0066FF" onmouseover="this.style.background='#FF0000'" onmouseout="this.style.background='#0066FF'"> </td>
<td bgcolor="#0066FF" onmouseover="this.style.background='#FF0000'" onmouseout="this.style.background='#0066FF'"> </td>
</tr>
</table>本回答被网友采纳
第2个回答 2012-02-28
两种做法
一种是利用a 的属性
a:link,a:visited{display:block; width:50px; heght:50px} a:hover{blackground:blue}
一种是js
一种是利用a 的属性
a:link,a:visited{display:block; width:50px; heght:50px} a:hover{blackground:blue}
一种是js
第3个回答 2012-03-06
用a:hover啊