差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
windows:ie8 [2009/07/27 15:37] – ともやん | windows:ie8 [2009/07/27 16:12] – ともやん | ||
---|---|---|---|
行 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 互換モードの場合| |
- | | undefined|Firefox などで表示した場合| | + | | 5|IE5 互換モードの場合| |
+ | | undefined|Firefox など | ||
+ | |||
+ | ===== サーバサイドで互換モードを指定する ===== | ||
+ | HTML ヘッダに以下のメタタグを記述する。 | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <meta http-equiv=" | ||
+ | </ | ||
+ | </ | ||
+ | ^メタタグ | ||
+ | |content=" | ||
+ | |content=" | ||
+ | |content=" | ||
+ | |content=" | ||
+ | ====== 参考文献 ====== | ||
+ | [[http:// | ||
+ | [[http:// |