<td>
<img src="images/smlnkhome_01.gif" width="23" height="52" alt=""></td>
<td colspan="3">
<a href="google.com"><img src="images/smlnkhome_02.gif" width="87" height="52" alt=""></a></td>
<td bgcolor="#151515"><a href="plan.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image37','','images/images/smlnkhome_03h_03.gif',1)"><img src="images/smlnkhome_03.gif" name="Image37" width="86" height="52" border="0"></a></td>
<td><a href="inv.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image36','','images/images/smlnkhome_04h_04.gif',1)"><img src="images/smlnkhome_04.gif" name="Image36" width="110" height="52" border="0"></a></td>
<td><a href="mm.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image38','','images/images/smlnkhome_05h_05.gif',1)"><img src="images/smlnkhome_05.gif" name="Image38" width="131" height="52" border="0"></a></td>
<td colspan="3"><a href="dt.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image39','','images/images/smlnkhome_09h_06.gif',1)"><img src="images/smlnkhome_06.gif" name="Image39" width="110" height="52" border="0"></a></td>
<td colspan="2"><a href="ctl.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image40','','images/images/smlnkhome_07h_07.gif',1)"><img src="images/smlnkhome_07.gif" name="Image40" width="136" height="52" border="0"></a></td>
<td><a href="ts.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image41','','images/images/smlnkhome_08h_08.gif',1)"><img src="images/smlnkhome_08.gif" name="Image41" width="110" height="52" border="0"></a></td>
<td><a href="proposal.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image42','','images/images/smlnkhome_09h_09.gif',1)"><img src="images/smlnkhome_09.gif" name="Image42" width="80" height="52" border="0"></a></td>
<td><a href="review.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image43','','images/images/smlnkhome_10h_10.gif',1)"><img src="images/smlnkhome_10.gif" name="Image43" width="84" height="52" border="0"></a></td>
<td>
是的,我正在尝试将图片“smlnkhome_02.gif”链接到谷歌,但每次我输入代码(手动并通过Dreamweaver)时,按钮行都会破坏... http://imgur.com/uwZ8B.jpg
答案 0 :(得分:2)
为<img>
代码添加style="border:0px;"
这应该设置正确
答案 1 :(得分:2)
你应该给img一个边界为零的链接;
所以在你的css中:
a img {
border:0px solid black;
}
答案 2 :(得分:2)
要禁用那些讨厌的蓝色边框,请将其添加到全局CSS:
a img{
border: none;
}
要了解有关CSS重置和禁用不需要的默认样式的详细信息,请查看this other SO question。
答案 3 :(得分:2)
我同意蒂姆和艾琳的观点。如果你想节省一些工作,请使用CSS全局处理蓝色边框:
a img {
border:0px;
}
-OR -
如果您只想从包含在链接中的单个图像中删除边框:
<a href="#"><img src="images/smlnkhome_02.gif" style="border:0px;" /></a>
答案 4 :(得分:1)
阅读有关CSS Reset的更多信息也很有用。