html - Conditional comments syntax -
can explain me difference between first , second conditional comment syntax?
<!--[if lt ie 8]><html class="no-js lt-ie8"><![endif]--> <!--[if gt ie 8]><!--><html class="no-js"><!--<![endif]-->
why second 1 use use <!-->
syntax before <html>
tag? can use following syntax same result?
<!--[if lt ie 8]><html class="no-js lt-ie8"><![endif]--> <!--[if gt ie 8]><html class="no-js"><![endif]-->
thanks in advance!
no, second setup not same first.
in first, <!--[if gt ie 8]><!--><html class="no-js"><!--<![endif]-->
used, let other browsers (the one's not understand conditional comments) have <html class="no-js">
, second setup won't
src: https://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx
Comments
Post a Comment