次のものを使用するページの iframe に含まれるページがあります。
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
理想的には、ユーザーが使用しているブラウザーで利用可能な最新の標準モードを使用してページをレンダリングしたいと考えています。これは可能ですか?
含めてみました
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
私のページで、「IE = edge」の値を持つ「X-UA-Compatible」HTTPヘッダーを含めるようにWebアプリケーションを変更しましたが、やりたいことができないようです。
奇妙なことに、たとえば 2 つのページがあり、最初のページには iframe が含まれ、もう 1 つのページには iframe に表示されるものが含まれている場合、次のようになります。
<!doctype html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<script>
console.log("Page document mode: "+document.documentMode);
</script>
</head>
<body>
<iframe src="iframepage.html" />
</body>
</html>
と
<!doctype html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script>
console.log("Iframe document mode: "+document.documentMode);
</script>
</head>
<body>
</body>
</html>
出力はかなり予想外です
Page document mode: 7
Iframe document mode: 8
ドキュメントモード 8 はどこから来たのですか? また、iframe ドキュメントを 9 以上にするにはどうすればよいですか??
誰かが私を正しい方向に向けることができれば、私は永遠に感謝します!! ありがとう、ニック