[英]Fixed PanelGrid in JSF while scrolling (primefaces)
I need to set the panelGrid fixed while scrolling the page. 我需要在滚动页面时将panelGrid设置为固定。
eg the bottom bar on the top should be fixed, while scrolling the datatable. 例如,在滚动数据表时,应该固定顶部的底部条。
<h:panelGrid id="buttonGrid">
....
</h:panelGrid>
<p:dataTable id="datatable" .....>
....
</p:dataTable>
How can I solve this? 我该如何解决?
This works: 这有效:
<h:panelGrid id="buttonGrid" styleClass="fixed-class">
<h:outputText value="text text"/>
<h:outputText value="text text"/>
<h:outputText value="text text"/>
<h:outputText value="text text"/>
<h:outputText value="text text"/>
</h:panelGrid>
css: CSS:
.fixed-class{
position: fixed;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.