LoginSignup
31
29

More than 5 years have passed since last update.

IEの描画モード(ドキュメントモード)を指定する方法

Last updated at Posted at 2012-09-04

<head> の先頭に <meta http-equiv=X-UA-Compatible ... を使って指定します。

<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" >

content の中身と描画モードは次の通り
- IE=IE5 -> Quirks モード強制
- IE=IE7 -> IE7 標準モード強制
- IE=IE8 -> IE8 標準モード強制
- IE=IE9 -> IE9 標準モード強制
- IE=Edge -> 常に最新の描画モードを強制する
- IE=EmulateIE7 -> DOCTYPE 宣言の内容によって IE7 標準モードにするか IE5 モードにするかを判定する
- IE=EmulateIE8 -> DOCTYPE 宣言の内容によって IE8 標準モードにするか IE5 モードにするかを判定する
- IE=EmulateIE9 -> DOCTYPE 宣言の内容によって IE9 標準モードにするか IE5 モードにするかを判定する

参考:
- IE 各バージョンの描画モード(英語版MSDN)
- IE の描画モード互換性と描画モード指定方法(英語版MSDN)

31
29
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
31
29