md-table - How to update the column width

后端 未结 18 2151
离开以前
离开以前 2020-12-04 10:58

I have started using the md-table for my project, and I want fixed column width. Currently all columns width are divided into equal size.

Where can I get the documen

18条回答
  •  庸人自扰
    2020-12-04 11:23

    The Angular material documentation uses

    .mat-column-userId {
        max-width: 40px;
    }
    

    for its table component to change the column width. Again, userId would be the cells name.

提交回复
热议问题