Internet Explorerのバージョンを条件分岐させるコンディショナルコメント
- : HTML
- : InternetExplorer
- :
IEの全てのバージョンに「ie.css」適用
<!--[if IE]> <link rel="stylesheet" type="text/css" href="ie.css"> <![endif]-->
IE以外のブラウザに「style.css」を適用
<!--[if !IE]> <link rel="stylesheet" type="text/css" href="style.css"> <![endif]-->
IE 6でのみで「ie6.css」を適用
<!--[if IE 6]> <link rel="stylesheet" type="text/css" href="ie6.css"> <![endif]-->
IE 6以下で「ie6.css」を適用
<!--[if lte IE 6]> <link rel="stylesheet" type="text/css" href="ie6.css"> <![endif]-->
IE 7以上で「ie7.css」適用
<!--[if gte IE 7]> <link rel="stylesheet" type="text/css" href="ie7.css"> <![endif]-->