当前位置 : 主页 > 网页制作 > css >

角度 – 移除垫子扩展面板边框和盒子阴影

来源:互联网 收集:自由互联 发布时间:2021-06-13
有没有办法去除边框,我认为它是Angular Material的垫子扩展面板的盒子阴影?我希望它全白,所以你只会看到文字和扩展箭头 mat-accordion mat-expansion-panel class="" (opened)="panelOpenState = true" (clo
有没有办法去除边框,我认为它是Angular Material的垫子扩展面板的盒子阴影?我希望它全白,所以你只会看到文字和扩展箭头

<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>
网友评论