我可以更改标签的 float 默认紫色吗?
<mat-form-field>
<input matInput placeholder="My Lable" formControlName="my-Lable">
</mat-form-field>
最佳答案
我更喜欢 <mat-label></mat-label>
比*placeholder*
<mat-form-field>
<mat-label>Agent Code</mat-label>
<input matInput>
</mat-form-field>
然后你就在css中调用它
mat-label {
color: blue;
}
关于 Angular Material 输入 float 标签默认颜色更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53929519/