1

I created an andoird application that has a webview to my site so that i have a web application. I want to allow iphone users to access the application using their safari by giving them a link (QR).

My problem is that my site has buttons and DIVs with specific widths and heights in pixels in their CSS and the page looks very small on the iphone safari screen (zoom is needed).

What is the best method to customize for iphone ?

Possibilites i thought of:

a) JS code that detects the iphone and runs through the DIVs and resizes them b) look for a possiblity to do in JS a "zoom-in" to a certain factor which will show the page nicely over the whole screen (is this possible?)

Any other option will be welcome too ...

Thanks,

4

1 に答える 1

1

ビューポート メタ タグを確認してください。

倍率を使用して設定できます。

<meta name = "viewport" content = "initial-scale = 1.0">

または特定の幅:

<meta name = "viewport" content = "width = 590">

またはデバイスの幅に:

<meta name = "viewport" content = "width = device-width">
于 2012-06-01T13:03:09.970 に答える