jQuery Mobile - Safari 浏览器在屏幕上滑动
我刚刚为客户完成一个移动网络应用程序。我使用 MVC3 和 Razor 以及 jQuery Mobile 编写了它。我没有注意到但客户端注意到的是 Safari(并且只有 Safari)在使用 Web 应用程序时似乎能够在屏幕上移动。这里很难解释,但是你可以将整个浏览器向左、向右、向上、向下滑动,留下灰色背景,这是其他移动网站所做不到的。
有人知道这可能是什么吗?我什至不知道从哪里开始!
提前感谢所有贡献者。
I am just finishing off a mobile web application for a client. I have written it using MVC3 and Razor and using jQuery Mobile. Something I hadn't noticed but the client has is that Safari (and only Safari) seems to be able to move around the screen when using the web application. Difficult to explain here but you can slide the whole browser to the left, right, up and down leaving a Grey background behind it, this is not something that other mobile sites do.
Does anyone have an idea of what this might be? I don't even know where to start with it!
Thanks in advance to all who contribute.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想这与这个问题中描述的问题有关: jQuery - iPad / iPhone 上的可拖动图像 - 如何集成 event.preventDefault();?
I suppose it has to do with the issue described in this question: jQuery - draggable images on iPad / iPhone - how to integrate event.preventDefault();?
好的,对于遇到此问题的任何人,我都找到了解决方案。 jquery 移动框架附带的 css 包含类 ui-body-c (其中 c 根据主题被其他字母替换)。在此类中,有一个边框:1pxsolid #ccc;,删除它可以解决问题,而无需更改网站上的任何样式。
Ok for anyone who comes across this I have found the solution. The css that comes with the jquery mobile framework contains the class ui-body-c (with the c being replaced by other letters dependiong on theme). In this class there is a border: 1px solid #ccc;, removing this has removed the issue without changing any styling on the site.