gpt4 book ai didi

html - p :layoutUnit ignore the margin-top

转载 作者:太空宇宙 更新时间:2023-11-04 06:51:41 25 4
gpt4 key购买 nike

我的问题很简单。我正在使用 PrimeFaces 3.0 和 layoutUnit 组件。

Myxhtml

<p:layout fullPage="true" locale="fr">
<p:layoutUnit position="north" scrollable="false" resizable="false" size="60" locale="fr">
<ui:insert>
<ui:include src="../agenda/commons/menuView.xhtml"></ui:include>
</ui:insert>
</p:layoutUnit>
<p:layoutUnit position="center" scrollable="false">
...

结果是这样的:

enter image description here

当我检查页面时,我创建了两个 div,但我无法编辑它们。

检查代码图片

enter image description here

这个div从哪里来,如何编辑。

最佳答案

我在这篇文章中找到了解决方案 How can I set the height in layoutUnit of primefaces?

myXHTML

<style>
.westUnit {
height: 124px !important;
}

.westUnit1 {
height: 101px !important;
}
</style>


...
<p:layout fullPage="true" locale="fr" styleClass="westUnit">

<p:layoutUnit position="north" scrollable="false" resizable="false"
styleClass="westUnit1" size="60" locale="fr">

<ui:insert>
<ui:include src="../agenda/commons/menuView.xhtml"></ui:include>
</ui:insert>

</p:layoutUnit>
...

关于html - p :layoutUnit ignore the margin-top,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52813710/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com