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

高洛峰
Release: 2017-02-17 13:26:56
Original
1686 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!