如何清除超链接图像周围的黑色边框? [英] how to remove black border around hyperlinked image?
本文介绍了如何清除超链接图像周围的黑色边框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我将图片(< img>
)转成超链接(通过将它包装在< a>
),Firefox在图像周围添加了一个黑色边框。 Safari不显示相同的边框。什么CSS声明最好消除边界?
When I turn an image (<img>
) into a hyperlink (by wrapping it in <a>
), Firefox adds a black border around the image. Safari does not display the same border. What CSS declaration would be best to eliminate the border?
推荐答案
img {
border: 0
}
或老式:
<img border="0" src="..." />
^^^^^^^^^^
这篇关于如何清除超链接图像周围的黑色边框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文