如何在角度材质中编辑.mat-select-panel的默认css?

时间:2017-10-16 06:59:26

标签: angular-material

角度材质的默认选择框使用以下类:

.mat-select-panel{
    min-width: 112px;
    max-width: 280px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 0;
    padding-bottom: 0;
    max-height: 230px;
    min-width: 100%;
}

但是,我想将max-height更改为其他内容?我怎么能这样做?

1 个答案:

答案 0 :(得分:2)

API for mat-select已更新,现在允许您使用panelClass输入为面板指定其他类。然后,您可以覆盖全局类定义中的样式。

相关问题