我试图隐藏水平滚动条.
我尝试了很多解决方案,但它似乎没有用.
我试过的解决方案是
here
这是我在XHTML中使用的代码
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
value="#{bean.displayCommentsDetailsList}"
selection="#{bean.selectedComments}"
rowKey="#{row.commentDate}" rows="20" paginator="true"
paginatorPosition="bottom" rowIndexVar="index"
paginatorTemplate="{FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
scrollable="true" scrollHeight="150" style="width:100%;overflow-x:hidden;overflow-y:auto;"
rowStyleClass="#{row.changeFieldFlg==true ? 'highlight' : null}">
disabled="#{bean.editCmdActionflg == false}"
actionListener="#{bean.addComments}"
update="commentsdt :SystemDetailsinfoForm:line :growl :error"
partialSubmit="true" title="Add Row.." icon="ui-icon-plusthick"
styleClass="iconButton" />
rendered="#{bean.selectedChoice == '2'}">
rendered="#{bean.selectedChoice == '2'}"
style="width:90px" />
rendered="#{row.editableflg==false}">
style="width:98%;float:left" rendered="#{row.editableflg==true}">
我尝试使用overflow-y:scroll; overflow-x:hidden;隐藏水平滚动条但似乎没有一个应用于数据表.
请让我知道您解决此问题的建议