如何评论IE条件评论?

fle*_*exx 5 html comments

我只是想知道是否可以自己评论IE条件评论(用于测试目的)?以下不起作用:

<!-- <!--[if IE 7]> some code <![endif]--> -->
Run Code Online (Sandbox Code Playgroud)

提前致谢!FLEXX

Que*_*tin 5

不,这是不可能的.

SGML/HTML/XML/XHTML注释不能嵌套.


new*_*ver 5

我想你可以插入一些东西使它们无效:

<!--\[if IE 7]> some code <!\[endif]-->
Run Code Online (Sandbox Code Playgroud)