【发布时间】:2011-10-16 10:53:14
【问题描述】:
我无法在 IE9 中禁用 IE 兼容模式按钮。
我的头像和文档类型是这样的:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if lte IE 8]>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-en" xml:lang="en-en" class="ie8">
<![endif]-->
<!--[if IE 9]>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-en" xml:lang="en-en" class="ie9">
<![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-en" xml:lang="en-en">
<!--<![endif]-->
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="meta content here" />
</head>
<body>
<!-- page content here //-->
</body>
</html>
如何禁用 IE9 中的兼容模式按钮?
我以为我做了我的研究。我应用了各种后备解决方案来显示从 7 到 9 及更高版本的每个 IE 中的所有内容。
客户端抱怨兼容模式在激活时会弄乱布局。有什么方法可以禁用该按钮?
【问题讨论】:
标签: cross-browser internet-explorer-9 ie8-compatibility-mode x-ua-compatible