Jquery移动尺寸太小

时间:2021-09-28 20:22:19

I'm making an app on PhoneGap using Jquery Mobile. The app runs fine on the PC browser and on the simulator, but when I install it on my phone everything is very small.

我正在用Jquery手机在PhoneGap上做一个应用。这款应用在PC浏览器和模拟器上运行良好,但当我把它安装在手机上时,一切都非常小。

On my home page I have a listView that is searchable, and when I tap the textfield to search something the page adjusts to a more readable size.

在我的主页上,我有一个可搜索的列表视图,当我点击textfield来搜索某个内容时,页面会调整到更可读的大小。

How can I solve this? I want it to be readable from the start.

我怎么解决这个问题?我希望它从一开始就是可读的。

1 个解决方案

#1


93  

Add this in the <head> of your html:

在html的中添加这个:

<meta name="viewport" content="initial-scale=1, maximum-scale=1">

It will scale the page to fit your device size.

它将缩放页面以适应您的设备大小。

#1


93  

Add this in the <head> of your html:

在html的中添加这个:

<meta name="viewport" content="initial-scale=1, maximum-scale=1">

It will scale the page to fit your device size.

它将缩放页面以适应您的设备大小。