也许是我今天在这里遇到的另一个新手问题,但是我找不到解决方案。尝试了一些CSS技巧,但没有给出我想要的结果。
我决定将布局fullPage属性设置为false,因为我不想让任何滚动条烦人,当我更改为false时,我得到了想要的结果。
但这导致页脚消失了……它不再显示在我的页面中。
有谁知道为什么会这样吗?
我的代码没什么特别的,但是这里是:
<p:layout fullPage="false">
<p:layoutUnit position="north" size="170" resizable="false" closable="false" collapsible="false">
//Content
</p:layoutUnit>
<p:layoutUnit position="west" size="200" resizable="false" closable="false" collapsible="false">
//Content
</p:layoutUnit>
<p:layoutUnit position="center" resizable="false" closable="false" collapsible="false">
//Content
</p:layoutUnit>
<p:layoutUnit position="south" size="100" resizable="false" closable="false" collapsible="false">
//Content
</p:layoutUnit>
</p:layout>
提前致谢。
最佳答案
看起来这是Primeface中的错误,直到修复了问题
<p:layoutUnit styleClass="layoutUnitCenter" position="center" closable="false" >
<ui:insert name="content" />
<ui:include src="footer.xhtml" />
</p:layoutUnit>
基本上,您将页脚包含在中心内容中,无论页脚将在其下方显示的内容大小如何。看起来很好
关于html - PrimeFaces:整个页面设置为“false”导致页脚消失,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21819445/