<分区>
Angular Material 的 mat-icon 标签总是默认大小为 24px。那么如何改变它...???
.mat-icon {
background-repeat: no-repeat;
display: inline-block;
fill: currentColor;
height: 24px;
width: 24px;
}
标签 javascript html css angular
<分区>
Angular Material 的 mat-icon 标签总是默认大小为 24px。那么如何改变它...???
.mat-icon {
background-repeat: no-repeat;
display: inline-block;
fill: currentColor;
height: 24px;
width: 24px;
}
最佳答案
字体大小往往会弄乱位置。我做类似的事情:
<mat-icon class="icon-display">home</mat-icon>
CSS:
.icon-display {
transform: scale(2);
}
其中 2 实际上可以是任何数字。 2 将原始大小加倍。
关于javascript - 如何更改 Angular Material 上 mat-icon 的大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53312640/