Home  >  Article  >  Web Front-end  >  overflow: hidden to disable page scroll bars

overflow: hidden to disable page scroll bars

高洛峰
高洛峰Original
2017-02-28 13:21:291726browse

There are many ways to disable page scroll bars, but the simplest and fastest is overflow: hidden. The following is a method to disable html and body scroll bars, compatible with IE6 and 7

html 
{ 
overflow: hidden; 
} 
body 
{ 
overflow: hidden; 
}


In IE6 and 7, you need to set the html to be valid. In other standard browsers, you can set the body.

For more overflow: hidden to disable the page scroll bar, please pay attention to the PHP Chinese website for related articles!


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