.mat-tab-group {
margin: 10px;
}
.mat-tab-label-active {
width: 50px;
background: silver;
color: darkblue;
font-weight: bold;
border-top-right-radius: 5px;
margin-left: 10px;
margin-right: 10px;
opacity: 1 !important;
text-align: center;
animation: none;
}
.mat-tab-label {
text-align: center;
width: 50px;
margin-left: 10px;
margin-right: 10px;
background: silver;
color: darkblue;
font-weight: bold;
border-top-right-radius: 10px;
border-top-left-radius: 10px;
}我正在尝试将活动和非活动的文本宽度设置为大约50px,但标签仍在移动,是否有其他属性
发布于 2019-06-25 16:29:36
只需在您的src/styles.css文件中添加以下行:
@import '~@angular/material/prebuilt-themes/deeppurple-amber.css';https://stackoverflow.com/questions/56739965
复制相似问题