MojarraJSFAPI/Impl2.1.12打印css注释
我将实现从2.1.3切换到2.1.12 Mojary。 但现在我可以在任何IE浏览器中看到CSS开关注释:MojarraJSFAPI/Impl2.1.12打印css注释,jsf,mojarra,Jsf,Mojarra,我将实现从2.1.3切换到2.1.12 Mojary。 但现在我可以在任何IE浏览器中看到CSS开关注释: <!--[if lt IE 7]> <div style=' clear: both; text-align:center; padding:0 0 0 0px; position: relative;'> <a href="http://www.microsoft.com/windows/internet-explorer/defau
<!--[if lt IE 7]> <div style=' clear: both; text-align:center; padding:0 0 0 0px; position: relative;'> <a href="http://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img src="http://storage.ie6countdown.com/assets/100/../resources/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today. /></a> </div> <![endif]--> <!--[if lt IE 9]> <script type="text/javascript" src="js/html5.js"></script> <![endif]-->
现在是可见的,而不是关闭渲染。
意思是,在我的源代码中,字符用lt和gt转义。
这来自于api的变化。有人有同样的经历吗?
谢谢 您可以使用
以您想要的方式渲染它:
<h:outputText value="<!--[if lt IE 7]><div>...</div><![endif]-->" escape="false" />
或者你可以用它来减少恐惧:
<o:conditionalComment if="lt IE 7">
<div>...</div>
</o:conditionalComment>
...
您可以使用
以您想要的方式渲染它:
<h:outputText value="<!--[if lt IE 7]><div>...</div><![endif]-->" escape="false" />
或者你可以用它来减少恐惧:
<o:conditionalComment if="lt IE 7">
<div>...</div>
</o:conditionalComment>
...
谢谢BalusC,这是一个选项,但不是通常应该采用的方式。你能确认这是一个bug吗?感谢并感谢Hanks BalusC,这是一种选择,但不是通常应该采用的方式。你能确认这是一个bug吗?谢谢和问候