简体   繁体   English

图像作为IE9中的链接

[英]Image as link in IE9

I have a link " <a ... ></a> " and within it an image "" 我有一个链接“ <a ... ></a> ”,其中有一个图像“”

Something like: " <a...><img src.../></a> " 类似于:“ <a...><img src.../></a>

My problem is in IE9 (do not know if it occurs in versions prior to IE9) that is putting an edge in the image. 我的问题出在IE9中(不知道它是否出现在IE9之前的版本中),从而使图像出现了边缘。

In other images on my page, which has no links, this problem does not occur. 在页面上没有链接的其他图像中,不会发生此问题。

How can I take the edge off these images that have associated links 如何消除这些具有关联链接的图像的边缘

Try this CSS: 试试这个CSS:

img{
    border: 0
}

If you are talking about a dotted border, it's the outline IE9 applies to all links. 如果您说的是虚线边框,那就是IE9的轮廓适用于所有链接。 To remove- 去除-

a:active, a:focus { outline: none; a:活动,a:重点{大纲:无; } }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM