我有这个p:tabView
<p:tabView id="monpanel" >
<p:tab id="tab1" title="Informations">
<ui:include src="includes/Informations.xhtml" />
</p:tab>
<p:tab id="tab2" title="Prix">
<ui:include src="includes/Prix.xhtml" />
</p:tab>
<p:tab id="tab3" title="Fournisseurs">
<ui:include src="includes/fournisseurs.xhtml" />
</p:tab>
<p:tab id="tab4" title="Stock">
<ui:include src="includes/stock.xhtml" />
</p:tab>
</p:tabView>
我想修复所有选项卡的高度和宽度,并且当其中一个选项卡的宽度由于验证而改变时:所有选项卡的宽度都相同
我也想知道是否可以在里面制作滚动条p:tabView
** * ** * ** * ** * ** * **解决方案 :** * ** * ** * ** * ** * ** * ****
<p:tabView id="monpanel">
<p:tab id="tab1" title="Informations">
<p:scrollPanel style="width: 596px;height: 231px;border: none;" mode="native" >
<ui:include src="includes/Informations.xhtml" />
</p:scrollPanel>
</p:tab>
<p:tab id="tab2" title="Prix">
<p:scrollPanel style="width: 596px;height: 231px;border: none;" mode="native" >
<ui:include src="includes/Prix.xhtml" />
</p:scrollPanel>
</p:tab>
<p:tab id="tab3" title="Fournisseurs">
<p:scrollPanel style="width: 596px;height: 231px;border: none;" mode="native" >
<ui:include src="includes/fournisseurs.xhtml" />
</p:scrollPanel>
</p:tab>
<p:tab id="tab4" title="Stock">
<p:scrollPanel style="width: 596px;height: 231px;border: none;" mode="native" >
<ui:include src="includes/stock.xhtml" />
</p:scrollPanel>
</p:tab>
</p:tabView>