【发布时间】:2012-07-28 02:59:24
【问题描述】:
我想要在我的 JSF 2 应用程序中做的是根据浏览器版本设置正确的 html 样式,这里是示例代码:
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <!--<![endif]-->
如何在 JSF 2 中做到这一点?最好/最简单的方法是什么?
我在 Omnifaces (o:conditionalComment) 中发现了一些有趣的东西,但它只允许有条件地加载整个 css,这对我来说没用...
【问题讨论】:
标签: html jsf jsf-2 conditional-comments omnifaces