Created
April 27, 2019 15:26
-
-
Save linxinemily/15e651426fbad77a5c06fb1da09ee677 to your computer and use it in GitHub Desktop.
9x9-example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.grid-cell { | |
display: flex; | |
align-items: flex-end; | |
flex-wrap: wrap; // 讓內部 div 當空間不夠時可以自動換行 | |
flex-direction: column; // 讓內部 div 由上往下排列 | |
justify-content: space-between; // 讓內部的 div 內容可以去均分父元素橫的空間 | |
align-content: space-around; // 讓內部的 div 內容可以去均分父元素直的空間 | |
height: 350px; // 要設定固定高度,才會有 wrap 的效果 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment