How to set the height of the parent element of the waterfall flow?

because the child element is absolutely positioned, the parent element is highly collapsed, because the waterfall flow layout is adopted with JS, and now the problem is, you need to set the height of the parent element. What should I do?

Mar.07,2021

has been solved, that is, the value of the highest element of the array

Menu