问题
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