angular - Mat Dialog在打开后改变它的背景
问题描述
这是我的styles.scss的相关内容:
html,
body {
height: 100%;
background: #303030;
color: white;
}
这是我的项目主题:
@import '../../../node_modules/@angular/material/theming';
@include mat-core();
$theme-primary: mat-palette($mat-grey, 900);
$theme-accent: mat-palette($mat-grey, 50);
$theme-warn: mat-palette($mat-red);
$theme: mat-dark-theme($theme-primary, $theme-accent, $theme-warn);
@include angular-material-theme($theme);
仅在向下滚动一点时才会出现问题。在页面顶部,我有一个 mat-tab-nav-bar。
更新:Chrome 中出现错误但 Safari 中没有
解决方案
推荐阅读
- java - 如何使文件只读整数并按数字排序
- python - 一种检查月份和日期组合在 Python 3 中是否有效的方法
- javascript - 正则表达式匹配英语和俄语句子的开头和结尾
- c# - 使用自定义协议
- c++ - 如何将不同大小的数组传递给我的 c++ 函数?
- tabs - Bootstrap - 滚动并打开特定选项卡的链接
- c# - 用 Open XML SDK 替换文本
- ios - 向 NotificationCenter 观察者添加参数 UIbutton
- git - 如何使用 .git 文件在 git 中查看或检索我的电子邮件和密码
- javascript - 在保持 JSON 文件完整的同时替换 Javascript 中的字符串