<分区>
<分区>
如何更改 Angular Material 按钮的宽度?我正在使用 Angular 6。
最佳答案
您可以附加一个类并对其进行操作。
<button mat-raised-button class="my-class">Show</button>
然后在 CSS/SASS 文件中
.my-class{
width: 100px!important;
min-width: unset!important;
}
这应该确保属性被覆盖。 BR
关于javascript - 如何更改 Angular Material 按钮的宽度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53334081/