문제

Is it possible to insert an 'and' in a conditional comment?

For example:

<!--[if gte IE 9 && if !IE]>
// MESSAGE
<![endif]-->

Triggering only IE 9, higher versions of IE and browsers that are not IE?

도움이 되었습니까?

해결책

The & operator is not even necessary. This code will run in non-IE browsers and in IE 9 and higher, according to the syntax description on Wikipedia:

<!--[if gt IE 9]><!-->
// MESSAGE
<!--<![endif]-->

다른 팁

Conditional comments are an IE on thing.

Check out this post and answer for details on how to do what you want.

IE Conditional Comments and Chrome/Firefox

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top