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