Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] 第353天 列举几种瀑布流布局的方法 #2182

Open
haizhilin2013 opened this issue Apr 2, 2020 · 1 comment
Open

[html] 第353天 列举几种瀑布流布局的方法 #2182

haizhilin2013 opened this issue Apr 2, 2020 · 1 comment
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

第353天 列举几种瀑布流布局的方法

我也要出题

@haizhilin2013 haizhilin2013 added the html html label Apr 2, 2020
@ppjiucai
Copy link

ppjiucai commented Apr 3, 2020

flex方法:
.waterfall{ //从上到下
display: flex;
flex-direction: row;
}
.column { //从左到右
display: flex;
flex-direction: column;
width: calc(100%/3);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html html
Projects
None yet
Development

No branches or pull requests

2 participants