angular - Angular Material Components 有奇怪的样式
问题描述
我不知道为什么我的材质组件如此怪异,就好像它们在我的应用程序中实现得很糟糕一样。
这是幻灯片切换
<div
fxFlex
fxLayoutAlign="end center"
fxLayout="row"
fxLayoutGap="10px"
class="right-header margin-right-x2"
>
...
<div fxLayout="row" fxLayoutAlign="end center" class="theme-container">
<mat-slide-toggle (click)="toggleTheme()" [checked]="isDarkTheme">
<mat-icon class="header-icon">highlight</mat-icon>
</mat-slide-toggle>
</div>
</div>
和工具提示,每次都显示在我的应用程序底部
<div
fxLayoutAlign="start center"
fxLayout="column"
fxLayoutGap="15px"
matTooltip="This is a tooltip"
class="contacts-container"
>
<a>
</a>
</div>
如果您能帮助我解决这个问题,我将不胜感激!谢谢。
解决方案
好的,感谢@Navitas28,我在重新安装时发现我忘记在我的 styles.scss 中导入 mat-core() 了!我的愚蠢错误..
感谢您的回答,祝您有美好的一天!
推荐阅读
- javascript - CSHTML(RAZOR) 中可重用的 ajax 和 javascript 函数
- c - 将文本写入多个 c 文件中的单个文本文件
- json - 如何快速解析数据库中的 JSON 数组
- javascript - 从数据库中选择数据而不刷新php中的页面
- ios - Xamarin iOS 链接器导致 AutoMapper 问题
- java - 如何使用 powershell 在没有 java updater 的情况下获取 java 版本?
- android - Picasso 无法从 Uri 加载位图 - ImageView 显示为黑色视图
- php - 运行 phpcs 时出现 ERROR: Referenced sniff "PHPCompatibility" does not exist
- c++ - 如何使用返回第 n 个元素的方法创建元组
- apache - Apache 在 dist 升级后显示空的“/”索引