RWD: Show Desktop version in mobile minified, without horizontal scroll

后端 未结 1 766
长发绾君心
长发绾君心 2021-01-15 18:50

Maybe my question will be somehow odd but my client wants to remove responsiveness for some time from the site, and see desktop version in mobile.

First I\'ve remov

相关标签:
1条回答
  • 2021-01-15 19:23

    You'll need to setup the viewport to be the width you want it to display in mobile. For you, with your min-width value, you'll want something like this:

    <meta name="viewport" content="width=1220">
    

    Note that the content width changed from device-width to your width value. This will allow the scaling you want. Otherwise, the browser will try to assume some defaults and it will be too small for your site. Specifically, it will try 920px wide, which is why you get a horizontal scroll.

    0 讨论(0)
提交回复
热议问题