使用 jquerymobile 的移动 Web 应用程序的背景图像无法在 iPhone 横向方向上正确渲染?
我正在使用jquerymobile开发一个Web应用程序,我将页面样式宽度和高度设置为100%。我有该页面的背景图像,并将背景图像设置为重复。
在 iPhone 上,在纵向模式下,背景占据整个屏幕尺寸,但是当我更改为横向模式时,我在屏幕底部出现空白(没有背景)。我只在 iPhone 上遇到这个问题。我还在 Android、ipad 和黑莓设备上进行了测试。在所有这些设备上,根据控件,两个方向的背景图像都完美地占据整个屏幕。
有人遇到过这个问题吗?或者可以给我一些关于这个问题的建议吗?
I am developing a web application using jquerymobile, I set the page style width and height as 100%. I have the background image for that page and also set the backgroundimage to repeat.
On the iPhone, in portrait mode, the background occupies the full screen size, but when I change to landscape mode I am getting whitespace(without bg) in the bottom of the screen. It is only on the iPhone that I have this issue. I have also tested on android, ipad annd blackberry devices. On all these devices both orientation have the background image perfectly occupy the full screen according to the controls.
Has anybody faced this problem? Or can give me some suggestion for this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
两个想法:
Two ideas:
我在这个问题上得到了解决。我只是删除了页面的高度和宽度,问题就解决了,这意味着我将宽度和高度设置为 100%,所以当控件离开该屏幕时,我遇到了这个问题,因此删除了已解决的规范,但之后删除 ipad 中反映的相同问题,因为我编辑了 jquery.mobile-1.0a3.min.css 文件,因为它们设置了横向和纵向的最大高度,我刚刚删除了这两个高度,所有问题都得到了解决。
感谢您的回复。
I am get resolved in this issues. I am just removed height and width of the page and the problem is solved, that mean i am setting width and height as 100% so when controls went out of that screen i am getting that issues, so removed the specification that get resolved but after removing that same issue reflect in ipad for that am edited the jquery.mobile-1.0a3.min.css file in that they set max height of landscape and portrait i just removed both height ,and all my problem get solved.
Thanks for your response naugtur.