[英]Angular - How to make elements inside mat-stepper inside mat-dialog adjust to the height of the dialog?
[英]How to adjust mat dialog width in angular using css?
如何使用 css 调整 angular 中的垫子对话框宽度? 可能在宽度附近增加模态大小: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 中添加重要信息:
.mat-dialog-container {
width: 300px !important;
}
这会覆盖 angular 的默认宽度!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.