How does Chrome's “Request Desktop Site” option work?

前端 未结 4 1701
半阙折子戏
半阙折子戏 2020-12-04 10:46

For iOS google chrome, when a user hits the \"Request desktop site\" button what does the browser do to try to bring up a desktop site? I imagine some sort of header on the

4条回答
  •  再見小時候
    2020-12-04 11:40

    Just wanted to point out that Chrome now not only changes the User-Agent but also ignores the original viewport meta tag if you "Request Desktop Site". Thus it won't be necessary to sniff the User-Agent anymore and you can rely on the viewport change as most responsive sites will automatically do. See this Change for further reference.

提交回复
热议问题