html - 如何改变垫标签的颜色
问题描述
我需要改变我的垫子标签的颜色。但是当我尝试!important
在 scss 中更改颜色时,我的输入出现错误......颜色不会恢复为红色。
如果我没有收到错误,我只需要更改标签的颜色,如果我收到错误,它应该留下红色。
<mat-form-field floatLabel="always" appearance="none">
<mat-label>Usuário</mat-label>
<input autofocus matInput formControlName="j_username">
</mat-form-field>
解决方案
只需在 scss 中更改您喜欢的颜色
mat-label {
color: red;
}
推荐阅读
- html - 如何在锚标签中生成“x(关闭符号)”?
- android - Android 模拟器上的 Expo 无法运行,出现问题
- angular - 如果 HTTP GET 请求没有返回数据,如何保护路由?
- scala - rdd.map 调用函数两次而不是一次
- python - Python字符串如何成为变量?
- typo3 - 添加掩码元素后,TYPO3 MASK 缺少 TCA 条目
- javascript - 热门在 Vue.js 中设置路由特定的“全局”样式
- java - 使用带有活动的按钮从片段中获取数据
- php - WAMP 服务器无法在本地访问,而是在线重定向
- performance - 为什么删除未使用的“if”子句会将执行时间从 12 毫秒减少到 4 毫秒?