直接上代码:
<body style="margin:0;padding:0;height:100%;width:100%;position:absolute;">
<div style="background-color:#c7c7c7;width:100%;height:100px;">
</div>
<div style="background-color:red;width:100%;position:absolute;top:100px;bottom:0px;"></div>
</body>
重要在于第二个div的display 和top bottom