Home >Web Front-end >HTML Tutorial >CSS controls div to automatically extend to 100% height of the window_html/css_WEB-ITnose

CSS controls div to automatically extend to 100% height of the window_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 12:27:361496browse

CSS controls the div to automatically extend to 100% height of the window, which is very practical and good.

css:

html{ height:100%;_height:100%;}
body{ height:100%;_height:100%;}
.minheight{ background :#CCC; width:200px; min-height:100%;_height:100%;}

html:

111

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