开发者

How to make page width equal to screen width in Opera Mobile, iOS, Android etc

开发者 https://www.devze.com 2023-03-02 11:58 出处:网络
Such browsers as Opera Mobile, iOS browser, Android browser开发者_StackOverflow (last two use webkit engine) emulate lager device\'s screen, than it is. For example: real device\'s screen width is 480

Such browsers as Opera Mobile, iOS browser, Android browser开发者_StackOverflow (last two use webkit engine) emulate lager device's screen, than it is. For example: real device's screen width is 480px, but Opera Mobile shows the page, like the screen is 850px width.

How i can prevent such browsers from emulating larger device's screen size, and make them to display web page as wide, as real device's screen?


Use <meta name="viewport" />


<meta name="viewport" content="width=device-width;" /> in the head should set the viewport to the device width

0

精彩评论

暂无评论...
验证码 换一张
取 消