繁体   English   中英

如何改变primefaces组件的风格

[英]how to change style of primefaces component

如何改变primefaces组件的风格。 特别是<p:layoutUnit的背景颜色。

这是我的代码:

<p:layout fullPage="true">
        <!-- TITRE -->
        <p:layoutUnit position="north" size="auto" resizable="true" closable="true"  >
            <ui:include src="titre.xhtml"></ui:include>
        </p:layoutUnit>
        <!-- CONTENT -->
        <p:layoutUnit position="center" size="25%" header="Options" >
                <ui:include src="titre.xhtml"></ui:include>
        </ui:include>
    <p:layout fullPage="true">

您可以为红色背景添加:style =“background:red!important”。 您也可以推出自己的主题。 这个过程在primefaces手册中有描述(可在线免费获得):

<p:layoutUnit position="north" style="background: red !important;" size="auto" resizable="true" closable="true"  >

如果你需要更具体的东西 - 随意问。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM