如何使用CSS调整垫对话框的角度宽度?

问题描述 投票:0回答:1

如何使用CSS调整Mat对话框的角度宽度?增加模态大小,大概在宽度上:70vw,并以像素为单位添加最小宽度。

数学对话框或模式容器

.mat-dialog-container {
    display: block;
    padding: 24px;
    border-radius: 4px;
    box-sizing: border-box;
    overflow: auto;
    outline: 0;
    width: 100%;
    height: 100%;
    min-height: inherit;
    max-height: inherit;
}
css angular sass less mat-dialog
1个回答
0
投票

您必须将重要添加到CSS:

.mat-dialog-container {
    width: 300px !important;
}

这将从角度覆盖默认宽度!

© www.soinside.com 2019 - 2024. All rights reserved.