标题及文中的“!”应该为“!”

<!–[if lte IE 8]>
IE8及其以下版本可见
<![endif]–>

lte :就是Less than or equal to的简写,也就是小于或等于的意思。
lt   :就是Less than的简写,也就是小于的意思。
gte:就是Greater than or equal to的简写,也就是大于或等于的意思。
gt  :就是Greater than的简写,也就是大于的意思。
!    :就是不等于的意思,跟javascript里的不等于判断符相同,[if !IE]就是非IE浏览器。

例子:

<style type=”text/css”>
body{
background-color: #000;
}
</style>

<!-–[if IE8]>
<style type=”text/css”>
body{
background-color: #F00;
}
</style>
<![endif]–->

 

区别符号:  [ \9 ],[ * ],[ _ ],[ !important ]
区别IE6、IE7、IE8、IE9、Firefox、Chrome、Safari、Opera等浏览器的兼容性问题 http://hedgehogking.com/?p=121

 

  5 Responses to “判断IE版本的语句 <!--[if IE 8]>……<!endif-->”

  1. [...] 判断IE版本的语句<!–[if IE]><![endif]–>http://hedgehogking.com/?p=128  Posted by Hedgehog at 00:51  Tagged with: !important, Chrome, Firefox, hack, IE6, IE7, IE8, IE9, Opera, Safari [...]

  2. yNktq5 qwbjfafyvjyz, [url=http://wgcfpwnylxmg.com/]wgcfpwnylxmg[/url], [link=http://hwpjjkbetdng.com/]hwpjjkbetdng[/link], http://zgfayhlyosme.com/

  3. Thanks for the points you have contributed here. One more thing I would like to talk about is that computer memory specifications generally rise along with other advancements in the technological know-how. For instance, any time new generations of cpus are made in the market, there is usually an equivalent increase in the shape preferences of all computer system memory and hard drive space. This is because the software operated through these processor chips will inevitably rise in power to benefit from the new know-how.

 Leave a Reply

(required)

(required)

* Copy This Password *

* Type Or Paste Password Here *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 Hedgehog Suffusion theme by Sayontan Sinha