[英]property 'border:none' doesn't work well in Safari Browser
我在 safari 浏览器中应用属性“border:none”时遇到了一些问题。 我尝试将名为“profile-label”的 css class 具有属性“border:none”应用到标签“label”中,如下面的代码:
.profile-label { border: none; cursor: pointer; }
<label for="photo" class="profile-label" type="submit"> <img src="https://picsum.photos/536/354" alt="Foto" width="50" height="50" class="profile-photo" /> <input type="file" id="photo" hidden name="ProfileImage"/> </label>
该属性在 safari(边框:无)中无法正常工作,但在所有其他浏览器中都可以正常工作。 有谁知道为什么?
safari 浏览器中带边框的图像:
您可能想尝试将以下属性添加到 CSS:
outline: none;
不过,我不确定我能回答为什么会这样。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.