How to set IE document mode?

隐身守侯 提交于 2019-12-03 07:19:49
Dejan Dakić

i think you should also add <!doctype html> check this post out Forcing Internet Explorer 9 to use standards document mode

I believe you need to include

<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />

Edit

Also I would include a

<meta charset="utf-8" />

or what ever charset your using. Also moving these to the top of the head would make a difference as well.

But according to IE DEv Center ,

In addition, do not use an "X-UA-Compatible" meta tag on the page or send a custom HTTP header from the web server.

To force a webpage you are viewing in Internet Explorer 10 into a particular document compatibility mode, first open F12 Tools by pressing the F12 key. Then, on the Browser Mode menu, click Internet Explorer 10, and on the Document Mode menu, click Standards.

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