The syntax of the if statement code is very simple, is an if judgment statement to determine the type and version of the browser, using similar <!--[if LTE IE 6]> and <! The [endif]--> syntax structure is included to indicate if the browser is IE and the version number is less than or equal to 6.0. A similar syntax is also:
<!--[If ie]>
This can be seen by anyone using IE browser (all versions).
<! [endif]-->
<!--[if IE 6]>
So IE 6.0 version will be seen, only IE 6.0 version.
<! [endif]-->
<!--[If Lt IE 6]>
In this way, the following version of IE 6.0 will be visible, not including 6.0.
<! [endif]-->
<!--[If LTE IE 6]>
In this way, the following version of IE 6.0 will be visible, including 6.0.
<! [endif]-->
<!--[If LTE IE 8]>
In this way, the following version of IE 8.0 will be visible, including 8.0.
<! [endif]-->
<!--[if GT IE 5]>
So IE more than 5.0 version will be seen, does not contain 5.0
<! [endif]-->
<!--[if GTE IE 5]>
So IE more than 5.0 version will be seen, including 5.0
<! [endif]-->
Description
* Gt:greater than (version number greater than)
* Lt:less than (version number is less than)
* Gte:greater than or equal to (version number greater than or equal)
* lte:less than or equal to (version number is less than equal)
Very useful judgment statement, especially in some Web pages are very particular about IE version of the case judgment is very useful, haha 、、、 thank the original author.