V
V
Valentine2015-11-12 16:25:22
css
Valentine, 2015-11-12 16:25:22

Adaptive layout. Need help. Why is it displayed differently on the phone than in the browser from the PC?

Please tell me with adaptive layout using media queries. In a browser with a width of 460px - everything is displayed perfectly,
4392048a83134e2095ecd91c22998fa0.jpg
on a phone with a screen resolution of 480px - everything is bad
, this is with standard loading
dc8914b2f76747b6b25c17605b71ff42.jpg
, this is when zooming out
ae4c5aa1dfc747edb517f5df130bc72a.jpg

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
mr_dev1l, 2015-11-12
@mr_dev1l

in the copper request, specify not just max-width, but max-device-width
and see what viewport you have:

<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">

W
Wheelie, 2015-11-12
@Wheelie

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

R
Roman Tyurin, 2015-11-12
@Roman-T

Try this: media (max-width:480px) {
input {
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
}

V
Valentine, 2015-11-16
@ValentineNow

I still haven't figured it out. Maybe someone else can advise?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question