我無法禁用IE9中的IE兼容模式按鈕。如何禁用IE9中的兼容模式按鈕?
我的頭,DOCTYPE是這樣的:
<!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的兼容模式按鈕?
我以爲我做了我的研究。我應用了每種類型的後備解決方案,以便在每個IE中從7到9以上顯示一切正常。
客戶端抱怨兼容模式,當它被激活時,它會弄亂佈局。有什麼辦法可以禁用那個按鈕嗎?
問題依然存在。即使我將其更改爲: '
' – Cyrax您是否檢查控制檯中是否有類似的消息?您使用條件註釋來聲明HTML標記會爲我提升標誌。 –
我使用Paul Irish提出的解決方案來處理X瀏覽器的兼容性問題。只有針對particula瀏覽器的標籤纔會被解析。沒有消息在控制檯中彈出。 – Cyrax