Android 上的 Phonegap 应用
我刚刚使用 Phonegap 开发了一个 iPhone 应用程序,现在尝试使用 Android SDK 和 Phonegap 网站上提供的指南将其发布到 Android。除了屏幕分辨率之外,一切都运行良好,当我在设置 Nexus One 分辨率的 Android 模拟器上对其进行测试时,我发现一切都太小,导致一半屏幕空白。我需要进行设置才能使其像 iPhone 上那样完全浮动吗?
已更新
我正在使用此视口元标记。
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi" />
I have just developed an iPhone app using Phonegap and I now tried to post it to Android using Android SDK and guide available on Phonegap website. Everything works good except screen resolution and as I tested it on Android Emulator setting Nexus One Resolution, I found everything is too small and leaves half the screen empty. Is there a setting I need to put to make it exactly float like on iPhone?
UPDATED
I am using this viewport meta tag.
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi" />
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
meta Veiwport 标签
或CSS 媒体查询
实现多屏幕支持参考:
http://www.quirksmode.org/blog/archives/2010/09/combining_meta.html
http://www.quirksmode.org/mobile/viewports2.html
http://www.quirksmode.org/mobile/tableViewport.html#metaviewport
Use
meta Veiwport tag
orCSS media queries
for multiple screen supportReferences :
http://www.quirksmode.org/blog/archives/2010/09/combining_meta.html
http://www.quirksmode.org/mobile/viewports2.html
http://www.quirksmode.org/mobile/tableViewport.html#metaviewport