Make all images in mat-card-image same size but scale correctly

前端 未结 2 823
清歌不尽
清歌不尽 2021-01-06 18:23

This usually isnt a problem but just Material 2 is very under-documented atm so im having trouble making all images the same size but properly resize with window change

2条回答
  •  忘掉有多难
    2021-01-06 18:47

    Just add css-class to the image and and style the image from the SCSS file.

    {{project.title}}
    

    Now in SCSS:

    imgs {
      height: 50px;
      width: 50px;
    }
    

    And for more to Information visit W3school.com/image.

提交回复
热议问题