我正在使用primefaces的web應用程序。我使用的是數據表,每次將鼠標移動到表格中,滾動條會出現在底部,偶爾會出現在右側。我不想或不需要這個滾動條。 如何停止滾動條出現在dataTable中?
<p:dataTable var="o" id="territoryTable" widgetVar="territoryDataTable" value="#{searchTerritory.lazyModel}" lazy="true" dynamic="true" paginator="true" paginatorPosition="bottom" rows="#{configParams['dataTable.row.default']}" styleClass="dataTableMargin"
rowKey="#{o.id}" selectionMode="single" rowsPerPageTemplate="#{configParams['dataTable.row.values']}">
<p:ajax event="rowSelect" listener="#{searchTerritory.onRowSelect}" />
<p:ajax event="filter" ignoreAutoUpdate="true" />
<p:column headerText="#{messages['territory.id']}">
<h:outputText value="#{o.custom_id}" />
</p:column>
<p:column headerText="#{messages['territory.name']}">
<h:outputText value="#{o.name}" />
</p:column>
<p:column headerText="#{messages['territory.description']}">
<h:outputText value="#{o.description}" />
</p:column>
<p:column headerText="#{messages['status.active']}">
<p:selectBooleanCheckbox disabled="true" value="#{o.activeFlag}" />
</p:column>
<p:column headerText="#{messages['territory.coordinator.TerritoryManager']}">
<h:outputText value="#{o.territoryManager.name}" />
</p:column>
<p:column headerText="#{messages['territory.coordinator.status']}">
<h:outputText value="#{o.territoryManager.activeFlag eq true ? 'Active' : 'Inactive'}" />
</p:column>
</p:dataTable>
任何人有關於如何去除它的想法?
這不是默認的行爲...最有可能你的自定義CSS弄亂了事情。或者您可能放大了瀏覽器? – Kukeltje