问题
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