日期:2014-05-18  浏览次数:20486 次

请教一个css和div的小问题
页面中有3个div
上中下布局

上面的为页面的头 需要固定高度

下面的为页面的脚 也需要固定高度

中间的内容的高度不固定 但是设置成高度auto的时候不能和上下连接起来 设置成高度为100%也不行

请教下

------解决方案--------------------
<div id="top" style="width:1002px; height:100px; margin:0 auto; background-color:#009900"></div>
<div id="mian" style="width:1002px; margin:0 auto; background-color:#009900"></div>
<div id="foot" style="width:1002px; height:100px; margin:0 auto; background-color:#009900"></div>
------解决方案--------------------
在预览模式下可以拖动大小吧,在不行,就把代码拷到Dreamweaver中,控制大小
------解决方案--------------------
把DIV拖动下然后再把它的TOP之类的属性去掉。。。