【发布时间】:2019-12-10 14:01:08
【问题描述】:
我无法更改 mat-menu-content 的填充。我无法通过简单的 css 或 ::ngdeep 访问它。任何想法如何做到这一点?我对角度很陌生:(
一切都在里面:
<div class="...">
<mat-menu>
//The rest of code is here, some *ngFor, sub menu
<mat-menu>
我想让 mat-menu-content padding 为 0px,但我无法通过简单的 css 或 ::ngdeep 来实现
.mat-menu-content:not(:empty) {
padding-top: 8px;
padding-bottom: 8px;
}
【问题讨论】:
标签: angular menu angular-material