IE的if条件Hack 不指定

Else , 2008/10/04 20:51 , 积累些,自己也写些 , Comments(0) , Reads(1715) , Via Original
IE的if条件Hack
找这个出来的原因就是怕还有用98的机子,一些国家可能还有在用吧!以前做好一个网页后,后来发现对方用的是98,ie5 还有在这里还是要记一下

<!--[if IE]> Only IE <![endif]-->
所有的IE可识别
<!--[if IE 5.0]> Only IE 5.0 <![endif]-->
只有IE5.0可以识别
<!--[if gt IE 5.0]> Only IE 5.0+ <![endif]-->
IE5.0包换IE5.5都可以识别
<!--[if lt IE 6]> Only IE 6- <![endif]-->
仅IE6可识别
<!--[if gte IE 6]> Only IE 6/+ <![endif]-->
IE6以及IE6以下的IE5.x都可识别
<!--[if lte IE 7]> Only IE 7/- <![endif]-->
仅IE7可识别


Tags: , , ,
Add a comment

Nickname

Site URI

Email

Enable HTML Enable UBB Enable Emots Hidden Remember [Login] [Register]