Home >Web Front-end >CSS Tutorial >The reason why CSS controls the height of Html pages causes jitter problems

The reason why CSS controls the height of Html pages causes jitter problems

高洛峰
高洛峰Original
2017-02-17 13:26:561783browse

CSS controls the height of the Html page to cause jitter. In fact, the root cause of this type of page jitter caused by height is whether the scroll bar is displayed.

Add the following code in CSS:


html,body{ overflow-y:scroll;}
html,body{ overflow:scroll; min-height:101%;}
html{ overflow:-moz-scrollbars-vertical;}


It has been tested and can be implemented. From this it can be concluded that the root cause of this type of page jittering problem caused by height is actually caused by whether the scroll bar is displayed.

More CSS controls the height of the Html page causing jitter problems. For related articles, please pay attention to the PHP Chinese website!

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