S
S
smoklew2015-09-29 13:23:02
css
smoklew, 2015-09-29 13:23:02

Permission change?

Hello!
I would like to ask the following question: Why do some sites, when the browser window is reduced (on a PC), adaptability is visible and it will be seen how the site looks on mobile devices, and there are sites that simply have a horizontal scroll when the window is reduced, although when loading it on mobile . does it adapt to the device?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
Kirill Turovnikov, 2015-09-29
@turovnikoff

Sites that change appearance when the window changes use media queries in the styles @media htmlbook.ru/css/value/media , and other sites using js , you can use either ( matthewhudson.me/projects/device.js/) or php define device and apply the required styles

S
sasha, 2015-09-29
@madmages

options how to make the adaptability of pieces 4 offhand come to mind. Why, as you describe, it's hard to say without specifics.

A
Anton Fedoryan, 2015-09-29
@AnnTHony

Different parameters are set through @media : in the first case, the screen width is set to change, and in the second, different display devices, as an option.

M
Mikhail Livach, 2015-09-29
@Mausglov

For example, a page might have a full-width slider that only calculates dimensions on onLoad. As a result, a block with a fixed width is formed and bursts the page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question