固定p:tabView primefaces的宽度和高度
我有这个固定p:tabView primefaces的宽度和高度,primefaces,tabs,scroll,height,tabview,Primefaces,Tabs,Scroll,Height,Tabview,我有这个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"&
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>
对于选项卡视图中的scrollpanel,可以将模式指定为“本机”以使其正常工作。有关示例,请参见。关于宽度和高度,请参阅本手册
<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>