Now there is a centered div. When the content is higher than this div, how to make the browser have a scroll bar and scroll the content of the DIV? Please code
You can make the DIV have a scroll bar when it exceeds the height. The browser's scroll bar controls the entire document. If you add control to the document, once the content of the entire page is too large, then you Whether the scroll bar controls the DIV or the document is easy to be confused
Therefore, it is best to add restrictions to the DIV, or you can define the scroll bar yourself to simulate
Now there is a centered When the content of a div is higher than this div, how can I make the browser have a scroll bar and scroll the content of the DIV? What restrictions should be added to the code
Could you please tell me, has the problem been solved