我在Internet Explorer中对图像的链接有问题。
我使用了以下代码:<a href="link.html"><img src="image.jpg"></a>
现在图像周围有一个奇怪的边框。我试过a { text-decoration: none; }
但它没有改变任何东西。如何解决此问题?
把它放在css中
a img{border:none;}
每当我遇到这个问题时,我都会使用outline : none
看看这是否适合您。
或
area {
outline : none;
}
如果要覆盖多个元素