且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

删除Primefaces组件中的所有样式?

更新时间:2023-12-05 10:27:16

primefaces.THEME上下文参数设置为none,您将获得没有样式的功能性ui.

Set primefaces.THEME context parameter to none and you'll get a functional ui with no styles.

<context-param>
    <param-name>primefaces.THEME</param-name>
    <param-value>none</param-value>
</context-param>

您无需花费数小时来编辑样式. PrimeFaces的样式是通过ui-widget-headerui-widget-content之类的共享样式完成的,您可以通过 themeroller 网络进行自定义形式.我认为JSF和主题化不会比PrimeFaces容易.

You don't need to spend hours editing styles. Styling of PrimeFaces is done via shared styles like ui-widget-header, ui-widget-content which you can customize via the themeroller web form. I don't think JSF and theming can get any easier than PrimeFaces.