[英]IE Border/Frame Appears on linked image
I was searching arround for this tiny problem. 我正在寻找周围的这个小问题。 I found nothing but border:0; 除了border:0我什么也没找到; which doesnt do anything at all... 根本不做任何事情...
I am using css reset and everything works fine in every browser except IE. 我正在使用CSS重置,并且除IE之外,所有浏览器都可以正常运行。 I don't have any older IE so this problem appears in IE 9 for me... 我没有任何较旧的IE,所以这个问题对我来说在IE 9中出现了...
When I have an image that is linked to somewhere... 当我有链接到某处的图像时...
Example: 例:
<a id="deviantart" href="http://deviantart.com" target="_blank"></a>
#deviantart {
background: url("../img/socials-sprite.png") 0 21px;
width: 21px;
height: 21px;
position: absolute;
}
And when I click on it there is an sort of border that appears ... Preview: http://snpr.cm/uJl3Q4.png 当我单击它时,会出现一种边框...预览: http : //snpr.cm/uJl3Q4.png
No idea why that thing appears and is there any solution to fix it ? 不知道为什么会出现这种东西,是否有解决方案? It going on my nerves when I see that something is not working properly in other browsers... 当我发现其他浏览器无法正常运行时,我会不知所措。
Try setting the outline
property to none
. 尝试将outline
属性设置为none
。
#deviantart {
outline: none;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.