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

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

问题描述:

角材料的默认选择框,使用下面的类:如何编辑角材料中的.mat-select-panel的默认css?

.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%; 
} 

不过,我想改变的最大高度别的东西?我怎么能这样做?

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