我在我的代码中使用md-progress-spinner这样的:
<md-progress-spinner class="s-spinner" mode="indeterminate" color = "primary">
</md-progress-spinner>
如何更改md-progress微调器渲染的svg的笔触宽度。默认情况下,笔划宽度的值为10,对于我的项目而言太大。
最佳答案
如文档所述,
@Input()
strokeWidth
Stroke width of the progress spinner. By default uses 10px as stroke width.
那是组件的输入,就像“ mode” Jo一样,只是这样使用:
<md-progress-spinner class="s-spinner" strokeWidth="x" mode="indeterminate" color = "primary">
</md-progress-spinner>
其中x是您想要的宽度。
关于css - 如何减少 Angular Material 2中md-progress-spinner的笔划宽度?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/44064763/