How to prevent automatic scaling in Modern UI IE 11 on Windows 8.1/8?

随声附和 提交于 2020-01-13 17:34:08

问题


Windows 8.1/8 has a split screen feature which is nice while using multiple apps (like modern UI version IE11) in one screen. Most of the time when you set the IE split screen very narrow, you'll notice the web page zoomed out automatically, but some pages (like microsoft.com) are different. They doesn't zoom out and recognise the narrow width correctly, so it's easy to do some responsive deign.

My question is: What code made that difference? I've tried <meta name='viewport' content='width=device-width, user-scalable=0, initial-scale=1.0' /> but IE11 still zooms out the page.


回答1:


I got the answer finally. The short version is:

@media screen {
    @-ms-viewport { width: device-width; }
}

The full explaination is at http://msdn.microsoft.com/en-us/library/ie/hh708740(v=vs.85).aspx



来源:https://stackoverflow.com/questions/20464875/how-to-prevent-automatic-scaling-in-modern-ui-ie-11-on-windows-8-1-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!