Home >Web Front-end >CSS Tutorial >Solution to the problem that the height of the parent div cannot adapt to the height of the child div_CSS/HTML
When there is a lot of content, even if the parent sets the height to 100% or auto, it still cannot fully automatically stretch under different browsers. The solution is as follows:
Create a space with a height of 1 at the bottom of the layer to solve this problem.
There is also something like this:
or