<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
它应该放在 <head>
中的什么地方在 IE8 中将文档正确呈现为 IE7?
最佳答案
鉴于此元标记改变了文档的呈现方式,并可能导致视觉变化,我将应用与 content-type
相同的规则标题,这是
早于<head>
尽可能。
来自 W3C encoding specs :
The META declaration must only be used when the character encoding is organized such that ASCII-valued bytes stand for ASCII characters (at least until the META element is parsed). META declarations should appear as early as possible in the HEAD element.
关于html - <meta http-equiv ="X-UA-Compatible"content ="IE=EmulateIE7"/> 它应该放在 <head> 的什么地方才能在 IE8 中正确地将文档呈现为 IE7?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2154037/