[英]How to get rid of box around linked image
I know I've solved this problem before, but I can't remember or find the solution, so here I am... 我知道我之前已经解决了这个问题,但是我不记得或找不到解决方案,所以我在这里...
In Firefox 3.5 this code causes an undesirable blue border around the image. 在Firefox 3.5中,此代码导致图像周围出现不良的蓝色边框。 How do I get rid of this blue border? 如何摆脱这个蓝色边框?
<a style="text-decoration: none;" href="index.html">
<img src="http://www.google.com/logos/stpatricksday10-hp.gif" />
</a>
a img { border: none; }
应该可以解决问题(在IE6中有效)。
尝试将图片边框设置为0像素。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.