The parent container cannot be self-adaptive

Today, I encountered a problem in the development, and found that the parent container, that is, the green part in the picture, was not stretched by the white sub-container. In this case, I went to find out whether the height of the sub-element was written to death. It is recommended to change the height to into min-height processing.

 

Guess you like

Origin blog.csdn.net/qq_30596783/article/details/119671502