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

后端 未结 10 1518
逝去的感伤
逝去的感伤 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条回答
  •  时光说笑
    2021-02-18 20:17

    I Know is an old question, but still today is an issue. The way I solved was overriding it like this in the ts file:

    ngAfterViewInit() {
        document.getElementsByClassName('mat-card-header-text')[0].setAttribute('style', 'margin: 0 0');
      }
    

提交回复
热议问题