Pergunta

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?

Foi útil?

Solução

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]-->

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top