当 mat-input 中有文本同时失焦时,我怎样才能使失焦样式不适用?
我想在失焦和带有文字的情况下保留这些样式:
但现在这是我在失焦和文字时得到的结果:
此外,当没有文本且失焦时,该字段的外观如下:
我现在的风格:
.mat-form-field-appearance-outline .mat-form-field-outline {
background-color: #FFFFFF66;
border-radius: 10em;
color: transparent;
opacity: 0.5;
}
.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick {
color: white;
background-color: transparent;
}
先感谢您。