【问题标题】:How to apply scroll for table body in ng2-smart-table using angular 2如何使用 Angular 2 在 ng2-smart-table 中为表体应用滚动
【发布时间】:2019-08-31 18:56:40
【问题描述】:

我正在使用具有 19 列的 ng2-smart-table,它超出了仪表板的框架。所以我需要对表体应用水平滚动。

在我的 Angular 2 项目中使用 ng2-smart-table

:host /deep/ table {
  width: 1200px !important;
  overflow-x: scroll;

}

我没有得到表格的水平滚动

【问题讨论】:

  • 请回复本帖。
  • 没人知道还是什么?至少这么说.....

标签: scrollbar vertical-scrolling ng2-smart-table


【解决方案1】:

试试这个代码:

<div class="col-md-12" style = "overflow-x: scroll;">
     <div class="smart-table-container" style = "width: 2000px;">
          <ng2-smart-table [settings]="settings" [source]="source"></ng2-smart-table>  
     </div>
 </div>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-10
    • 2019-08-08
    • 1970-01-01
    • 2020-07-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多