go_Spurs 2017-05-23 06:11 采纳率: 100%
浏览 1276
已采纳

横向滚动条覆盖表格内容

图片说明
拉一下左边的边框才能恢复正常,刷新之后又是这样,但是如果有两条以上的数据是能够正常显示,求各路大神,这个问题怎么解决,代码如下

body { width: 100%; height: 100%; overflow: auto; margin: 0em; background-color: #fff; -ms-overflow-style: scrollbar; } #opinions td{ word-wrap:break-word; word-break:break-all; } .dojoxGridMasterView{ overflow: auto !important; max-height: 90%; }




/ui:toolbar





前手意见查询

/ui:contentPane
    <ui:contentPane region="center"  width="100%">
        <ui:grid gridType='taskguide.opinionList' jsId='grid' timeout="90000"
            autoWidth="false" query="condition" columnReordering="true"
            autoHeight="true" showPagination="true" position="bottom"
            rowsPerPage="50" styleId="opinions">                
        </ui:grid>
    </ui:contentPane>
</ui:borderContainer>

  • 写回答

2条回答 默认 最新

  • show_code 2017-05-23 06:40
    关注

    你肯定是不想出现横向滚动条的吧,那就把body再加一条设置:overflow-x:hidden;
    把.dojoxGridMasterView里面设置的overflow:auto!important去掉,改成overflow-x:hidden;overflow-y:auto;

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?