jQuery Mobile的PhoneGap的+字体大小是不同的 [英] Jquery Mobile + Phonegap the font sizes are different

查看:158
本文介绍了jQuery Mobile的PhoneGap的+字体大小是不同的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发使用PhoneGap的使用jQuery Mobile Android平台的应用程序。

I am developing an application using Phonegap with Jquery Mobile on Android Platform.

我设计了一个简单的页面。我还没有开始任何定制呢。但看看下面的屏幕。

I designed a simple page. I haven't started any customization yet. But look at the below screens.

屏幕1:在我的Andr​​oid设备的PhoneGap的内部发起的页面

Screen 1: The page launched inside the PhoneGap in my android device

屏幕2:在相同的Andr​​oid浏览器作为发起的.html页面相同的页面

Screen 2: The same page launched as a .html page in the same android browser

看到大小变化...为什么它会显示不同?我是否需要采取一些标准的考虑而设计jQuery Mobile的页面的PhoneGap?

See the size variations... Why it is displaying differently? Do I need to take some standard consideration while designing jQuery mobile pages for Phonegap?

推荐答案

会发生什么事是你的视区meta标签中?

What happens to be within your viewport meta tag?

例如,你可能有类似的东西:

For example, you might have something similar to:

<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />

我的一个应用程序,我用这个,它似乎被缩小类似于应用程序如何看起来。

One of my application I was using this and it seemed to be "Zoomed out" similar to how your application seems.

要解决这个问题,我只是改变了我的视区元标记:

To solve this, I just changed my viewport meta tag to:

<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1" />

这篇关于jQuery Mobile的PhoneGap的+字体大小是不同的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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