Removing blue outline/border from image anchor IE

若如初见. 提交于 2019-11-29 01:07:36
Ejaz

try adding following to your CSS

img{ border:0 }

IE adds a border around images if they’re the child of an anchor. You can remove this by setting the border to none:

a img {
      border: none;
}
a{
    outline: none !important;
 }

Worked for me.

You need to add the CSS to the image, not to the link. Instead of #link, you need to use #link img as the selector.

Then border:none; should work for you.

#link img {
    border: none;
}
#link img a
 {
 border:0;
 outline:none;
 }

You should be able to do it with this CSS:

border-style: none;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!