P
P
pet19872019-04-13 16:45:56
css
pet1987, 2019-04-13 16:45:56

What is the zoom mode in Safari on iPhone?

What is the zoom mode in Safari on iPhone? When this mode is enabled, the layout of the site floats. When it is off, that is, in normal mode, everything is in order.
Why can this be?
Does Safari on Iphone support CSS values ​​- em, rem? I used em, rem for layout, maybe this is the problem? How then to translate correctly em, rem to px?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pashchuk Ilya, 2019-05-11
@IlyaDeveloper

Hi bro, for zooming you change initial-scale=1 or work with

html {
  font-size: 16px;
  @media (max-width: 1280px) {
    font-size: 15px;
  }
}

I recommend using rem in place of pixels. need to watch send screenshots!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question