【发布时间】:2019-02-03 01:03:47
【问题描述】:
我在我的项目中使用了基本的 mat-select 组件。
<mat-form-field>
<mat-select placeholder="Favorite food">
<mat-option *ngFor="let food of foods" [value]="food.value">
{{food.viewValue}}
</mat-option>
</mat-select>
</mat-form-field>
如何去掉下划线,我也试过answer 还是没有结果。
【问题讨论】:
-
The answer by David Rinck on another question(未标记为正确答案)我认为是更好的方法。 “...使用一个ID,它可以让您具有更高的特异性...并将样式放在全局样式文件中”。您可以参考the answer of David Rinck。
标签: angular-material