在IE中禁用兼容性查看代码? [英] Disable Compatibility View Through Code In IE?
问题描述
出于某种原因,我正在调用一个doctype,最好是XHTML 1.0 Transitional,并且由于某种原因,每次我在Internet Explorer中打开它时,我都会得到...
I for some reason am calling a doctype preferably XHTML 1.0 Transitional, and for some reason every single time I open it in Internet Explorer I get...
浏览器模式:IE9兼容查看
文档模式:IE7标准
Browser Mode: IE9 Compat View
Document Mode: IE7 Standards
我甚至会在我的head标签的开头添加我的doctype的样子:
I'll even include what my doctype looks like with the beginning of my head tags:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
是的,我会关闭< body>
和< html>
。
任何想法?
Any ideas?
推荐答案
以下是您要查找的文档:
http://msdn.microsoft.com/en-us/library/cc288325(v = vs.85).aspx
Here's the documentation you are looking for: http://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx
包含此项,IE将呈现为IE9模式:
Include this and IE will render as in IE9 mode:
<meta http-equiv="X-UA-Compatible" content="IE=9" />
这篇关于在IE中禁用兼容性查看代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!