How does css + div solve content overflow and css div content overflow?
In normal times, when we layout, some text content will exceed the height of our limit, and some images will break through the DIV, causing webpage dislocation. CSS style to automatically hide content that overflows beyond the width and height of the DIV border so that we need to solve how to use CSS to automatically hide content that exceeds the configured CSS width and CSS height, it does not support DIV layout.
Especially in IE6, if the content exceeds the object height and width, it will be broken and increased. In this case, we can use the following solutions.
Solve CSS styles
In this case, we can use the CSS overflow style to solve the problem: the corresponding style overflow: hidden
Div {overflow: hidden}
After this setting, if the DIV object is set to a certain width and height, adding overflow: hidden will hide the content that exceeds the DIV width and height, including the image.
1. Hide text content beyond the width of the object
2. Hide images that exceed the object width