Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up纯 CSS 实现瀑布流布局 #40
Open
纯 CSS 实现瀑布流布局 #40
Labels
Comments
|
当然,有点 伪 瀑布流的感觉~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CSS实现瀑布流布局(display: flex)
https://codepen.io/Chokcoco/pen/wYgYXX
CSS实现瀑布流布局(column-count)
column-count-- 元素内容将被划分的最佳列数break-inside-- 避免在元素内部插入分页符https://codepen.io/Chokcoco/pen/LgjazE?editors=1100
CSS实现瀑布流布局(display: grid)
+本例使用 CSS grid 实现瀑布流布局
grid-template-columns、grid-template-rows分割行列grid-row控制每个 item 的所占格子的大小https://codepen.io/Chokcoco/pen/KGXqyo