问题
I've upgraded from jQuery Mobile a3 to b1, (Mainly because a3 didn't work with WP7 devices) and now it's not scaling correctly on any of my devices (iPhone 4, Droid X, HTC Surround - WP7). Any idea's as to what's causing this? I'm not using any custom css or anything else special... (I was previously, but I've since removed it all in attempt to find out what was causing the issue)
It does re-size with chrome when I re-size the window. I've tried clearing the cache/cookies/history/everything on the phones.
http://us.parkmobile.com/mobile/
回答1:
Your not setting the viewpoint meta tag
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- http://jquerymobile.com/demos/1.0b1/ (right click to view source)
回答2:
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
This is what I use :-)
来源:https://stackoverflow.com/questions/6861573/why-isnt-my-mobile-website-auto-resizing-for-mobile-devices