【问题标题】:Richfaces datascroller control widthRichfaces datascroller 控件宽度
【发布时间】:2016-02-16 20:56:25
【问题描述】:

我有以下代码:

<rich:dataScroller id="scrollerTest" for="userAdminTable"
    fastControls="auto" renderIfSinglePage="false" render="userAdminTable" />

数据滚动条工作正常,但看起来很奇怪,因为表格的宽度比数据滚动条大得多。似乎应该有一种简单的方法来控制数据滚动条的宽度,但我无法在文档中的任何地方找到该信息。我需要为此编写自定义 CSS 还是我错过了什么?

【问题讨论】:

    标签: css richfaces


    【解决方案1】:

    rich:dataScroller 移动到rich:dataTable 内:

    <rich:dataTable ...>
        ...
        <f:facet name="footer">
            <rich:dataScroller renderIfSinglePage="false" fastControls="auto" />
        </f:facet>
    </rich:dataTable> 
    

    【讨论】:

    • 嗯,它居中,但它仍然不是正确的大小。
    • 您可以在rich:dataScroller 中添加style="width: 100%",例如&lt;rich:dataScroller renderIfSinglePage="false" fastControls="auto" style="width: 100%" /&gt;
    猜你喜欢
    • 2011-10-14
    • 1970-01-01
    • 1970-01-01
    • 2012-12-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-17
    • 1970-01-01
    相关资源
    最近更新 更多