Jquery mobile device rotation shrinks the screen

徘徊边缘 提交于 2019-12-14 00:33:50

问题


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" >

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


回答1:


Figured it out lol.

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" >

to this:

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

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



来源:https://stackoverflow.com/questions/9104233/jquery-mobile-device-rotation-shrinks-the-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!