mercredi 1 octobre 2014

Need help understanding condition IE comments


Vote count:

0




I'm working with a theme and I found conditional comments to add classes to the html tag depending on version of Internet Explorer.



<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->


The first three are pretty straightforward. I'm having trouble understanding the 4th one.


What exactly does it do ? How does it work on non-IE browsers ?



asked 1 min ago







Need help understanding condition IE comments

Aucun commentaire:

Enregistrer un commentaire