有没有办法去除边框,我认为它是Angular Material的垫子扩展面板的盒子阴影?我希望它全白,所以你只会看到文字和扩展箭头 mat-accordion mat-expansion-panel class="" (opened)="panelOpenState = true" (clo
<mat-accordion> <mat-expansion-panel class="" (opened)="panelOpenState = true" (closed)="panelOpenState = false"> <mat-expansion-panel-header> <mat-panel-title> <span class="right">Filter</span> </mat-panel-title> </mat-expansion-panel-header> <p><app-data></app-data></p> </mat-expansion-panel> </mat-accordion>添加mat-elevation-z0类.像魅力一样,我最近需要使用它.
<mat-accordion> <mat-expansion-panel class="mat-elevation-z0" (opened)="panelOpenState = true" (closed)="panelOpenState = false"> <mat-expansion-panel-header> <mat-panel-title> <span class="right">Filter</span> </mat-panel-title> </mat-expansion-panel-header> <p><app-data></app-data></p> </mat-expansion-panel> </mat-accordion>