简体   繁体   中英

Image as link in IE9

I have a link " <a ... ></a> " and within it an image ""

Something like: " <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.

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:

img{
    border: 0
}

If you are talking about a dotted border, it's the outline IE9 applies to all links. To remove-

a:active, a:focus { outline: none; }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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