强制文档模式= IE8标准 [英] Force document mode=IE8 Standards
问题描述
因为我的内联网已经设置,所以我在使IE8不能默认为IE7文档模式时遇到了问题。
So I am having problems getting IE8 to not default to IE7 document mode, as our intranet is set up.
我正在使用IE开发工具设置加一个一点点js来检查浏览器报告文档模式的内容。
I am using IE dev tools to set plus a little bit of js to check what the browser is reporting the document mode to be.
除了我可以提供的标记之外,我将无法更改任何设置。换句话说,我不是管理员,我唯一的控制是在浏览器中。
I won't be able to change any settings other than what markup I can give. In otherwords I'm not an admin, the only control I have is within the browser.
我试过:
<meta http-equiv="x-ua-compatible" content="IE=8">
但是这不会改变报告文档模式的方式,它仍然报告为IE7。
But this does not change how the document mode is reported, it still reported as IE7.
推荐答案
有人可能认为这是先决条件,我同意。
One might think is would be a prerequisite, and I would agree.
但是在本地工作时我没有宣布doctype:
But whilst working locally I hadn't declared a doctype:
确保你声明一个:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="x-ua-compatible" content="IE=8" >
工作不错
这篇关于强制文档模式= IE8标准的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!