<style type="text/css">
body{margin:0;padding:0;}
div{width:100%;height:100px;background:#fc9;position:absolute;top:100%;margin-top:-100px}
</style>
<div></div>
底部多高它的margin-top 就负多少。保证不留空白。
时间: 2024-08-11 10:14:54
<style type="text/css">
body{margin:0;padding:0;}
div{width:100%;height:100px;background:#fc9;position:absolute;top:100%;margin-top:-100px}
</style>
<div></div>
底部多高它的margin-top 就负多少。保证不留空白。