Home > Article > Web Front-end > Problem setting scroll bars in div (Record 10)_html/css_WEB-ITnose
For such a div, when the text exceeds, we will Set overflow: scroll
Problem: In this case, even if the content does not exceed the scroll area, the first scroll area will appear. Although there is no scroll bar, the two scroll bars are ugly!
We should solve it like this: overflow: auto