你好,如何才能顯示出半隱藏的墊子標簽。
uj5u.com熱心網友回復:
在組件css檔案中:
mat-form-field {
line-height 55px !important;
}
或
mat-label{
line-height 55px !important;
}
或者
::ng-deep mat-form-field {
line-height 55px !important;
}
或
::ng-deep mat-label {
line-height 55px !important;
}
對后面的要小心,因為它是通用的。你可能要玩玩元素的css順序。就像我說的,最好的辦法是用chrome開發工具查看,這樣你就可以得到準確的類圖。
uj5u.com熱心網友回復:
我的臨時解決方案是使用
.mat-form-field-appearance-fill .mat-form-field-label-wrapper{ overflow: visible! important; }
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/323556.html
標籤:

