我有一个matselect字段,我不希望占位符作为标签浮动,我只想将其用作占位符,我尝试给floatPlaceholder =“ never”也尝试作为标签并给定floatLabel =“ never”,但是仍然它漂浮。需要建议
<mat-form-field>
<mat-select placeholder="Select Function" floatPlaceholder="never">
<mat-option *ngFor="let option of functionOptions"
[value]="option.name">
{{option.name}}
</mat-option>
</mat-select>
</mat-form-field>