


Do you have any plans? We can discuss the feasibility in the comment section. Well, here I have introduced all the solutions I can think of. DOM structure div.list // 设置 gird 或者 block,注意清除浮动 When a line is stretched, it will leave a blank, and the line and the line will not overlap. It can be seen that there is a very obvious line in the document flow layout. In essence, depends on the document flow, from left to right and top to bottom. It can be regarded as a pure CSS solution. Let's take a look at the picture above to see what the waterfall flow layout we are talking about looks like. The most important thing, There is no extra space difference between the stacks. The core of the waterfall flow layout is based on a grid layout, and the of the item list contained in each row of is random 160f6120c70df3 (the height changes dynamically with its content), and each item list is arranged in a stack. We also want to make a page to show our design draft ( fixed width, variable height ), waterfall flow is a great solution.

demo address: What is the waterfall flow layout?įor example, petal mesh, map below), these sites use waterfall flow layout when displaying content.
Flex 4 flowlayout how to#
In the spirit of practicality, let’s share the waterfall flow layout ( yesterday, a little brother asked me how to do it, but I didn’t find it after looking for it for a long time, ah, it was originally written on the intranet ).
