Trying to have a grid of card with angular material

后端 未结 2 739
时光取名叫无心
时光取名叫无心 2020-12-03 07:12

I have been trying to have a grid of card using angular-material. So I am using the directives md-grid-list and md-card. but the result is pretty ugly, and I am not sure to

2条回答
  •  青春惊慌失措
    2020-12-03 08:05

    You could use Flex Box instead of md-grid-list to have the same effect.

      
    ... Your content here

    Take a look at this Example with fixed number of cards in a row:

    http://codepen.io/anon/pen/bdQJxy

    And a responsive example, using Wrap layout

    http://codepen.io/anon/pen/MwzRde

    Hope this is what you wanted.

提交回复
热议问题