更改垫子旋转器的颜色 [英] Change color of mat-spinner
本文介绍了更改垫子旋转器的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何改变mat-spinner的颜色我试过了,但没有用
How to change color of mat-spinner i tried this but doesn't work
HTML
<mat-spinner [color]="red" ></mat-spinner>
<mat-spinner [color]="#ffffff" ></mat-spinner>
推荐答案
这段代码对我有用:
scss
.mat-spinner-color::ng-deep circle{
stroke: #FFFFFF !important;
}
html
<mat-spinner [diameter]="25" class="mat-spinner-color"></mat-spinner>
这篇关于更改垫子旋转器的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文