<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
标签 css
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
我一直在 CSS 中处理一些图像,并尝试在样式中使用 border: none;
来去除图像周围的白框,如下所示:
你们遇到过这种情况吗?斜杠我是不是忘记了要操作的样式。我用 Firebug 检查了 CSS,图像周围没有直接的白色边框。
最佳答案
试试这个
img{border:0;}
如果你只想在特定的类范围内
.yourClass img{border:0;}
这也适用于 img{border:none, outline: none;}
关于css - CSS 中图像周围的白色边框,为什么会出现这种情况,我该如何摆脱它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30846708/