css - 如何使用 css 以角度调整垫子对话框宽度?
问题描述
如何使用 css 以角度调整垫子对话框宽度?可能在宽度附近增加模态大小: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 的默认宽度!
推荐阅读
- python - 用电脑理解手写数字
- php - 如何在 laravel api 资源中添加自动增量字段
- docker - Docker - 使用标签影响启动顺序
- angular - PrimeNg 删除记录后刷新表
- javascript - 如何在小屏幕上重新排列表格单元格
- python - 如何在 Python 中使用分隔符“:”连接列表中的单个元素(由两个值组成)?
- android - 在我的服务器和我的客户端之间启用 HTTPS 通信
- java - 字符(运算符)的扫描仪输入如何工作?
- javascript - 如何更改nodejs的根文件夹?
- java - 在 PowerMock Accepting 中指定反射时的行为差异?