Home  >  Article  >  Web Front-end  >  Problem setting scroll bars in div (Record 10)_html/css_WEB-ITnose

Problem setting scroll bars in div (Record 10)_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:43:08854browse

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn