T
T
toaster khabrovich2015-12-29 10:43:54
iOS
toaster khabrovich, 2015-12-29 10:43:54

How to defeat built-in zoom in ios mobile browser?

I can't figure out why this code doesn't work:

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

body {position:absolute;width:100%;height:100%;}

For some reason, all the buttons are hefty - twice as large as necessary
. How to make the height of the buttons exactly the same as indicated in pixels?
if I do
<meta name="viewport" content="width=device-width,initial-scale=0.5,maximum-scale=0.5,user-scalable=0" />

then the scale becomes normal

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Ineshin, 2015-12-29
@studententer

1. content replace with

width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0

2. Add normalize.css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question