差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
windows:ie8 [2009/07/27 15:25] – 作成 ともやん | windows:ie8 [2019/05/18 02:23] (現在) – 外部編集 非ログインユーザー | ||
---|---|---|---|
行 1: | 行 1: | ||
====== Windows Internet Explorer 8 ====== | ====== Windows Internet Explorer 8 ====== | ||
+ | ===== ページのドキュメントモードを表示する ===== | ||
+ | 以下の JavaScript を記述するとドキュメントモードを表示できる。 | ||
< | < | ||
<script type=" | <script type=" | ||
<!-- | <!-- | ||
- | document.write(" | + | document.write(" |
+ | if (document.documentMode) | ||
+ | { | ||
+ | document.write( | ||
+ | "< | ||
+ | | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | document.write("< | ||
+ | } | ||
+ | document.write(" です。" | ||
// --> | // --> | ||
</ | </ | ||
行 10: | 行 23: | ||
<script type=" | <script type=" | ||
<!-- | <!-- | ||
- | document.write(" | + | document.write(" |
+ | if (document.documentMode) | ||
+ | { | ||
+ | document.write( | ||
+ | "< | ||
+ | | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | document.write("< | ||
+ | } | ||
+ | document.write(" です。" | ||
// --> | // --> | ||
</ | </ | ||
</ | </ | ||
+ | ^document.documentMode の値 | ||
+ | | 8|IE8 標準モードの場合| | ||
+ | | 7|IE7 互換モードの場合| | ||
+ | | 5|IE5 互換モードの場合| | ||
+ | | undefined|Firefox など IE8 以外で表示した場合| | ||
+ | |||
+ | ===== サーバサイドで互換モードを指定する ===== | ||
+ | HTML ヘッダに以下のメタタグを記述する。 | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <meta http-equiv=" | ||
+ | </ | ||
+ | </ | ||
+ | ^メタタグ | ||
+ | |content=" | ||
+ | |content=" | ||
+ | |content=" | ||
+ | |content=" | ||
+ | ====== 参考文献 ====== | ||
+ | [[http:// | ||
+ | [[http:// | ||
+ |