在移动设备上使用 safari 中的后退按钮时出现奇怪的图形故障
因此,我一直在为客户开发一个移动网站,在使用 iOS 设备上的后退按钮时遇到了一些奇怪的图形故障。
在浏览网站然后使用浏览器上的后退按钮返回到上一页后,这种情况偶尔会发生。正如您在图像中看到的,它留下了一些页面,当用户完成重新加载时,用户从页面折叠下方单击了后退按钮。
这是发生这种情况时的屏幕截图。 https://i.sstatic.net/esObx.png
有人知道我该怎么做吗防止这种情况发生?
So I've been developing a mobile website for a client and I've run into some weird graphical glitches when using the back button on iOS devices.
This is happening sporadically after having navigated through the site and then used the back button on the browser to go back to the previous page. As you can see in the image it leaves a bit of the page the user clicked the back button from just below the fold on the page when it finishes reloading.
here's a screen capture when this has happened.
https://i.sstatic.net/esObx.png
Does anybody have any idea how I can prevent this from happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道为什么会发生这种情况。它似乎只影响 iOS4 设备上的移动 Safari。 iOS3 设备和 iOS5 设备似乎不会受到影响。
我的解决方案是隐藏受影响页面上的所有元素,并使用 setTimeout 等待几微秒,然后再显示它们以强制屏幕重绘。
I'm not sure why this was happening. It appears to have only affected mobile safari on iOS4 devices. iOS3 devices and iOS5 devices appear to be immune.
My solution was to hide all the elements on the effected page and use setTimeout to wait a few microseconds before showing them to force a screen redraw.