开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜