S
S
SueAnn2016-03-31 11:44:16
css
SueAnn, 2016-03-31 11:44:16

How to make adaptive on phones with a high screen resolution?

There is an adaptive site makeuphouse.ru
There are 6 iPhones with a resolution of about 1000 pixels and, accordingly, it looks like it should at 1000 pixels, that is, everything is small.
But for some reason, not all adaptive sites behave the same way, for example, lp.tandem.by on an iPhone is displayed with a minimum width, i.e. 470 pixels. How can I do the same?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey, 2016-03-31
@skazi_premiere

Magic

meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

Well, individual styles@media only screen and (max-width:1000px)

C
Cyber_bober, 2016-03-31
@Cyber_bober

As Alexei wrote above, connect the meta tag, but the iPhone resolution needs to be divided by two, since this is a retina screen and you will have less physical resolution. Width, if I'm not mistaken, 375 pixels. Bootstrap for example offers media for smartphones at max-width:767px

R
Roman Dvoryanov, 2016-03-31
@Raxen

For retina, you need to write the following media query -

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
 /* Ваш css код */
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question