10

为了防止 IE9 中的 quirks 模式,我需要在每个 HTML 页面的最顶部添加以下行:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />

不幸的是,typo3 将该<meta http-equiv ...行移动到标题部分的末尾,使其无用。

如何告诉 tyop3 将元标记条目立即放在标题标记之后?

4

2 回答 2

9

您可以自己编写整个标题,通过添加disableAllHeaderCode = 1到您的打字稿,或者您可以通过将元标记直接添加到 head 标记来破解它:page.headTag = <head><meta http-equiv="X-UA-Compatible" content="IE=edge" />

于 2012-05-30T10:42:03.123 回答
-1

把它放在你的打字稿上

meta.X-UA-Compatible = IE=edge,chrome=1
于 2013-07-16T12:09:12.397 回答