【发布时间】:2014-05-08 03:22:59
【问题描述】:
<img class="image_cover" src = "" />
.image_cover {
width:25px;
height:25px;
border-style:none;
border: 0;
box-shadow:none;
}
我在这里演示一下:jsfiddle
在 Chrome 版本 33.0.1750.152 中,我看到 <img> 标记上方有一个框(边框)。我正在努力摆脱它。
我按照这里的输入:Removing the image border in Chrome/IE9,并设置了border、border-style 和box-shadow 属性,但我仍然看到它周围的边框。
我该如何解决这个问题?
【问题讨论】:
-
Border 的值为“none”,而 outline 可以设置为“0”