CSS布局:div高度随窗口变化而变化
* {margin:0px;}
html {height: 100%; }
body {height: 100%; }
div { margin:0 auto;}
#top { width:800px; min-height:100%; background-color:#00f;}
*html #top {height:100%; background-color:#f00;}
*html body {height:100%; }
#topz{ width:800px; height:60px; background:#ddd;}
#topx{ width:800px; height:50px; background:#ccc;}
div高度随窗口变化而变化。
中国最大的中文搜索引擎。
原文:http://www.cnblogs.com/u1234567890/p/4888158.html