+ 1

How does Android Chrome's "View desktop version" work?

When you open webpage in Chrome on Android, there is "View desktop version" option. How does that work, as this is often determined by screen size. It "lies" to page about screen size too get desktop version? Or how?

20th May 2019, 8:10 AM
Maneren
Maneren - avatar
2 Respostas
+ 2
Page layouts are often determined by the @media property in the css code. Specific screen sizes correspond to certain styling rules. As such, when you press the desktop button, it tells the page that it is the size of a desktop computer. From there, the appropriate styling rules are applied. Hope this answers your question. :)
22nd May 2019, 8:10 PM
SuperC
SuperC - avatar
+ 2
SuperC, thanks I was just curious
23rd May 2019, 5:34 AM
Maneren
Maneren - avatar