サポートされていないブラウザー (IE<=8) を使用している場合に警告ボックスを表示する Web サイト ページがあります。これは IE 8 以下では正常に動作しますが、今日は IE 10 でテストしていて、この条件も読み取っているようです。警告ボックスが表示されるべきではない場合に表示されます。私は多くのことを試しましたが、何が問題なのかわかりません。コードの一部を次に示します。
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
...
</head>
<!--[if lte IE 8]>
<div style="position:absolute;bottom:0px;left:0px;background-color:orange;color:white;z-index:1000;width:250px;text-align:center;">This content is best viewed in Chrome, Firefox or any other Modern Browser. <br/><strong>Please Upgrade. </strong></div>
<![endif]-->