我想在一個頁面上有多個 mat-select,每個 mat-select-value 的顏色不同。
當我把它放在我的 css 中時,它會改變所有選定值的顏色:
:host ::ng-deep .mat-select-value {
color: green !important;
}
我想要另一個 mat-select 的 mat-select-value 為藍色。我該怎么做?
uj5u.com熱心網友回復:
<mat-select >那就試試
:host ::ng-deep .blue .mat-select-value {
color: blue !important;
}
等等..
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/466836.html
