Home >Web Front-end >HTML Tutorial >css3 高度自适应_html/css_WEB-ITnose

css3 高度自适应_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:11:231009browse

html,body{height:100%;}

.container{ height:100%; display:-webkit-flex; -webkit-flex-direction:column;}

#top{ -webkit-flex:1; background:#f00;}

#bottom{-webkit-flex:1; background:#0f0;}


   

   

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