How do you deal with div with mat-card-header-text in an material2 card?

后端 未结 10 1529
逝去的感伤
逝去的感伤 2021-02-18 20:04

I can\'t seem to wrap my head around having this container in an md card.

In my material cards, I have this:

&
10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-18 20:19

    Per their recent recommendation https://angular.io/guide/component-styles, this worked for me:

     :host /deep/ .mat-card-header-text {
         margin: 0;
     }
    

提交回复
热议问题