浏览器条件css注释和IE 9 [英] Browser conditional css comment and IE 9

查看:84
本文介绍了浏览器条件css注释和IE 9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题。



我使用Internet explorer 9,只是将浏览器模式更改为IE 7或IE 8等...

我的问题是我已经添加了:

  -  [if lt IE 7]> 
< link type = \text / css\ = \stylesheet\href = \/styles/ie7.css\/>
<![endif] - >

但在IE9的IE7浏览器模式下不会改变为条件css文件...



这是正常的吗?

解决方案

if lt IE 7 将匹配IE6(或更低版本)。



要匹配IE7,请使用 lte (小于或等于


I'm having a strange issue.

I am using Internet explorer 9 and just changing the browser mode to IE 7 or IE 8 etc ...

My problem is that I've added:

<!--[if lt IE 7]>
<link type=\"text/css\" rel=\"stylesheet\" href=\"/styles/ie7.css\" />
<![endif]-->

but it's not changing to the conditional css file when in IE9 's IE7 browser mode...

Is this normal?

解决方案

if lt IE 7 will match IE6 (or lower).

To match IE7, use lte (less than or equal)

这篇关于浏览器条件css注释和IE 9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆