Conditional Comments not working in IE9 (CF environment)

南笙酒味 提交于 2019-12-24 08:13:57

问题


Okay, I'm building a page in a CF environment. I'm testing in chrome/FF & IE9. I'm trying to use conditional Statements for IE to deal with some minor formatting issues.

http://img849.imageshack.us/img849/5108/chromvie.png (reverse the chrome/IE tags and I cannot put the image in the question as I just signed up today, sorry.)

My code:

    <!--[if gte IE 10]><link rel="stylesheet" href="ieonly.css" media="screen" /><![endif]-->

I'm able to go directly the ieonly.css page. I'm at an utter loss. I've looked at some of the other conditional comment threads and haven't been able to resolve my issue with the information. Is it because of the ColdFusion environment?


回答1:


[if gte IE 10] is greater than or equal to IE 10. IE 9 is less than IE 10.




回答2:


Conditional comments only work in IE 5 through 9, so gte IE 10 or gte IE 11 won't apply to anything at all.



来源:https://stackoverflow.com/questions/9878961/conditional-comments-not-working-in-ie9-cf-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!