IPhone 4 ignores view meta tag

I just added the following HTML to the section of <head>my iPhone web application:

<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;"/>

This (presumably) limits page scaling so the user cannot zoom in. In versions of iOS prior to 4.0, this tag is respected, but iOS version 4.0+ completely ignores it and allows you to zoom in on all you want. In addition, if you rotate, iPhone 4 will automatically zoom.

So I ask, how can I “lock” the scale for my application? Can someone point me in the right direction?

+1
source share
2 answers

( ) , Safari, , ( iPhone 4 iOs 4).

.

+1

? .

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

, , , ? "width = device-width", iphone3 iphone4.

: <meta name="viewport" content="width = (your page width), user-scalable = no"/>

( ) .

+1

Source: https://habr.com/ru/post/1790522/


All Articles