为什么我的移动网站无法针对移动设备自动调整大小? [英] Why isn't my mobile website auto-resizing for mobile devices?

查看:51
本文介绍了为什么我的移动网站无法针对移动设备自动调整大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从jQuery Mobile a3升级到b1(主要是因为a3不适用于WP7设备),现在它无法在我的任何设备(iPhone 4,Droid X,HTC Surround-WP7)上正确缩放.关于什么原因的任何想法吗?我没有使用任何自定义css或其他特殊功能...(我以前曾使用过,但是此后我将其全部删除,以试图找出造成此问题的原因)

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)

当我调整窗口大小时,它确实会用chrome调整大小.我已经尝试清除手机上的缓存/Cookie/历史记录/所有内容.

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/

推荐答案

您未设置视点元标记

<meta charset="utf-8"> 
<meta name="viewport" content="width=device-width, initial-scale=1">

  • http://jquerymobile.com/demos/1.0b1/(右键单击以查看源代码)
    • http://jquerymobile.com/demos/1.0b1/ (right click to view source)
    • 这篇关于为什么我的移动网站无法针对移动设备自动调整大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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