DIV相对于父DIV底部对齐

DIV相对于父DIV底部对齐

<style type=”text/css”> .box1 {border:1px #cccccc solid;  width:500px; height:600px;position:relative;} .box2 {border-top:1px #cccccc solid; background:#f2f6fb; width:498px; height:22px; position:absolute; bottom:0;} </style> <div>     <div></div> </div>

重点是:bottom:0;

滚动至顶部