Why isn't my mobile website auto-resizing for mobile devices?

感情迁移 提交于 2019-12-23 17:35:06

问题


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

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