📜  垫滑动切换更改颜色 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:50.927000             🧑  作者: Mango

代码示例1
::ng-deep .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-thumb {
    background-color: blue; /*replace with your color*/
}

::ng-deep .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-bar {
    background-color: skyblue;  /*replace with your color*/
}