Hir*_*ndo 2 material-design angular-material angular angular11
I added Angular Material to my project using Angular-CLI. I selected the Purple/Green pre-built theme. According to the preview of the theme, the background color should be dark. But my background color still white. Why doesn't my background color change to dark? Any solution?
小智 5
Angular Material 文档说: \xe2\x80\x9c 如果应用程序的内容未放置在 mat-sidenav-container 元素内,则需要将 mat-app-background 类添加到包装元素(例如主体)。这可确保将正确的主题背景应用于您的页面。\xe2\x80\x9d
\n那么您是否将 mat-app-background 类放在包含元素上?
\n| 归档时间: |
|
| 查看次数: |
1119 次 |
| 最近记录: |