1. ホーム
  2. Web制作
  3. HTML/Xhtml

IEブラウザのHTML Hackタグの概要

2022-01-10 03:19:35


コピーコード
コードは以下の通りです。

<! --[if !IE]><! --> Recognized by all but IE <! --<! [endif]-->
<! --[if IE]> All IE recognizable <! [endif]-->
<! --[if IE 5.0]> Only IE5.0 is recognized <! [endif]-->
<! --[if IE 5]> Only IE5.0 and IE5.5 are recognized <! [endif]-->
<! --[if gt IE 5.0]> IE5.0 and above are recognized <! [endif]-->
<! --[if lt IE 6]> Recognized by IE6 and below <! [endif]-->
<! --[if IE 6]> this is ie6<! [endif]-->
<! --[if gt IE 6]> IE6+ is recognized <! [endif]-->
<! --[if lt IE 7]> Recognized by IE7 and below <! [endif]-->
<! --[if IE 7]> this is ie7<! [endif]-->
<! --[if gt IE 7]> IE7+ is recognized <! [endif]-->
<! --[if lt IE 8]> Recognized by IE8 and below <! [endif]-->
<! --[if IE 8]> this is ie8<! [endif]-->
<! --[if gt IE 8]> IE8+ is recognized <! [endif]-->
<! --[if lt IE 9]> Recognized by IE9 and below <! [endif]-->
<! --[if IE 9]> this is ie9<! [endif]-->