I am displaying img elements using the following CSS.
.display-icon{
height: 16px;
width: 16px;
display:inline-block;
border:hidden;
background-repeat: no-repeat;
}
In Internet Explorer, it works fine, but in Chrome, there is a border around the image. Is there any way to remove it? Unfortunately I could not use the src attribute in the img element as part of the company requirement.
尝试border:none
或outline:none
?
也可以这样做
border-style:none;
Try the following:
img.display-icon,
a img.display-icon {
border: none;
}
to cover all eventualities.
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.