JS获取浏览器高度,但是要减去顶部和底部DIV的高度,只获取中间内容部分。要根据浏览器大小而改变

body{padding:0;margin:0;} .menu{ width:100%; height:80px; background: #232323; } #content{ clear:both; position:absolute; width:100%; } .bottom{ width:100%; height:70px; background:#CCC; bottom:0; position:absolute; }