仅适用于IE 8的CSS [英] CSS for IE 8 Only
本文介绍了仅适用于IE 8的CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只需要为IE 8设置某些样式。
I need to style some items for only IE 8. If I do this:
<!--[if IE 8]><link rel="stylesheet" href="mystyleIE8.css" type="text/css" media="screen, projection"/><![endif]-->
然后我这样做:
<!--[if IE 7]><link rel="stylesheet" href="myStyleIE7.css" type="text/css" media="screen, projection"/><![endif]-->
会发生什么?我发现此链接到先前的SO问题,这暗示着<!-[如果IE 8]>
表示如果IE 8或更低版本。这是否意味着使用<!-[如果IE 8]>
将覆盖所有<!-[如果IE 7]> ;
css?我的程序是否知道仅对IE 8使用<!-[如果IE 8]>
和<!-[如果IE 7]>
for IE 7?
What will happen? I found this link to a previous SO question which implied that <!--[if IE 8]>
means "If IE 8 or lower". Does this mean that using <!--[if IE 8]>
will overwrite all <!--[if IE 7]>
css? Will my program know to use <!--[if IE 8]>
for only IE 8 and <!--[if IE 7]>
for IE 7?
推荐答案
这并不表示如果IE 8或更低版本
It does not mean "If IE 8 or lower".
<!--[if IE 8]>
表示是否为IE8
<!--[if lt IE 8]>
如果小于IE 8
<!--[if lte IE 8]>
如果小于或等于IE 8
If it is less than or equal to IE 8
这篇关于仅适用于IE 8的CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文