Jquery移动设备旋转会缩小屏幕 [英] Jquery mobile device rotation shrinks the screen

查看:143
本文介绍了Jquery移动设备旋转会缩小屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我在iOS产品上遇到JQM和设备轮换问题。当用户旋转屏幕时,它不会调整大小以进行填充。我在头部有这条线来处理显示尺寸:

So I am having an issue with JQM and device rotation on the iOS products. When the user spins the screen, it doesn't resize to fill. I have this line in the head which handles the display size:

    <meta name="viewport" content="height=device-height,width=device-width,initial-scale=1.0,maximum-scale=1.0" >

有谁知道为什么iPhone没有正确处理屏幕旋转?它在我的机器人上工作正常。

Does anyone know why the iPhones are not handling the screen rotation properly? It works fine on my android.

推荐答案

想出来大声笑。

在我脑海里,我这样做:

in my head, I was doing this:

<meta name="viewport" content="height=device-height,width=device-width,initial scale=1.0,maximum-scale=1.0" >

到此:

<meta name="viewport" content="initial-scale=1, maximum-scale=1">

骨头错误。希望这可以帮助你们中的一些人。

Boneheaded mistake. Hopefully that helps some of you guys out.

这篇关于Jquery移动设备旋转会缩小屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆