好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

div自适应高度问题_html/css_WEB-ITnose

定义了如图三个div 上面div紧贴浏览器上部 下面div紧贴浏览器下部分 想让中间空白div自适应高度(就是中间留多少填多少) 该怎么做?

上下两个div是两个html 我include包含进来的


回复讨论(解决方案)

   	 	 页面名称  html,body { 	height: 100%;	margin: 0;	padding: 0;}.class1 {	position: absolute;	background-color: #f60;	left: 0;	top: 0;	width: 100%;	height: 100px;}.class2 {	position: absolute;	background-color: #cc0;	left: 0;	top: 100px;	bottom: 100px;	width: 100%;}.class3 {	position: absolute;	background-color: #f60;	left: 0;	bottom: 0;	width: 100%;	height: 100px;}   

查看更多关于div自适应高度问题_html/css_WEB-ITnose的详细内容...

  阅读:30次