【问题标题】:Re size angularjs material design data table column width重新调整angularjs材料设计数据表列宽的大小
【发布时间】:2018-09-12 17:05:44
【问题描述】:

我已将 md-table 与 angularjs 材料一起使用,在这里我尝试调整列的大小,但始终显示如下样式属性我需要帮助来调整此属性的大小。

table.md-table:not(.md-row-select) th.md-column:nth-child(n+2):nth-last-child(n+2) {
    padding: 0 56px 0 0;
}

我也尝试了以下方式,但没有解决“adjusting angularjs material design data table column width

【问题讨论】:

    标签: angularjs angularjs-material


    【解决方案1】:
    I have fixed the following way. The class name "table-reszie-column" i used for table. Here 5 px is my requirement you can change as per your choose
    
    .table-reszie-column:not(.md-row-select) td.md-cell:nth-child(n+2):nth-last-child(n+2),
    .table-reszie-column:not(.md-row-select) th.md-column:nth-child(n+2):nth-last-child(n+2)
     {
        padding: 0 5px 0 0 !important;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-07-15
      • 2020-06-10
      • 2021-05-31
      • 1970-01-01
      • 2023-03-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多