html中的条件注释

html条件注释

Tip:关于条件注释,应用普遍的是专门针对IE的条件注释,如下:

<!--[if lt IE 9]>
<![endif]-->

其中,lt 是修饰,同类型的修饰有以下几个:

lte:就是Less than or equal to的简写,也就是小于或等于的意思。

lt :就是Less than的简写,也就是小于的意思。

gte:就是Greater than or equal to的简写,也就是大于或等于的意思。
gt :就是Greater than的简写,也就是大于的意思。

!:就是不等于的意思,跟javascript里的不等于判断符相同HTML5代码规范。

原文地址:https://www.cnblogs.com/wyylqb/p/7109452.html