Home > Article > Web Front-end > overflow: hidden to disable page scroll bars
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!