简体   繁体   English

div周围的iOS(Safari和Chrome)黑色边框

[英]iOS (Safari and Chrome) black border around div

I have this div with no border. 我有这个无国界的div On the iPhone/iPad browsers it appears with a black border around. 在iPhone / iPad浏览器上,它周围带有黑色边框。 The code: 编码:

.progress {
position: absolute;
left: 0px;
z-index: 9999;
background: #ffffff url(img/progress.gif) center 95px no-repeat;
height: 100%;
}

I already tried with: 我已经尝试过:

border: 1px solid white;

But to no avail. 但无济于事。 Also transparent brings nothing. transparent也什么也没有。

Screenshot: http://liebdich.biz/img/Foto.PNG 截图: http//liebdich.biz/img/Foto.PNG

Edit: Actually I am not sure what is happening. 编辑:其实我不知道发生了什么。 Since this div appears on other cases without border. 由于此div出现在其他没有边界的情况下。 Go to http://liebdich.biz/blanc to see it live. 转到http://liebdich.biz/blanc观看直播。 It is the Ajax "loading" animation div . 这是Ajax “正在加载”动画div Whenever you click on a link you can see it. 每当您单击链接时,都可以看到它。 However if you go to http://liebdich.biz/blanc/profile and click on an image you see the same div , but with a border...? 但是,如果您转到http://liebdich.biz/blanc/profile并单击图像,则会看到相同的div ,但带有边框...? Can it be, that this is in connection with the jQuery fadeOut of the images? 可能与图片的jQuery fadeOut有关吗?

Thank you!! 谢谢!!

This was happening to me and it had to do with the meta tag allowing zoom 这发生在我身上,这与允许缩放的meta标签有关

Apparently iOS Safari has a problem with resizing things and creates that artifact 显然,iOS Safari在调整大小和创建工件时存在问题

Applying a meta tag to disable zoom solved my problem (user-scalable = no) 应用meta标签禁用缩放解决了我的问题(用户可缩放=否)

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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