如何改变的PhoneGap的屏幕尺寸?屏幕尺寸、PhoneGap

2023-09-08 00:31:13 作者:叼煙不点火

我在建设有PhoneGap的应用程序。我用我的Galaxy S2来测试应用程序,而他的屏幕分辨率为480×800。但是,在创建视图的时候,他的尺寸为320x800!

I'm building an application with PhoneGap. i'm using my Galaxy S2 to test the application, and his screen resolution is 480x800. But when the View is created, his size is 320x800!

我试过的东西太多了,但没有任何工程...有没有人在这里,可以帮帮我吗?

I tried too many things, but nothing works... Is there here anyone that can please help me?

呵呵,我使用的是Android的环境,使用Eclipse,ADT等。

Oh, I'm using android's environment, with Eclipse, ADT, etc.

推荐答案

我找到了一种方法来做到这一点。我已经用中继检视试过,但我想我不会把一切是必要的。

I found a way to do that. I already had tried by using a meta viewport, but I guess I don't put everything that is necessary.

只要把下面这个元标记,一切都应该罚款。

Just put this meta tag below and everything should be fine.

<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, target-densityDpi=device-dpi" />
 
精彩推荐
图片推荐