我已经将md-table与angularjs材质一起使用,在这里我尝试使用来调整列的大小,但始终在style属性中显示如下,我需要帮助来调整此属性的大小。
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”
答案 0 :(得分:0)
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;
}