DIV相对于父DIV底部对齐

2009年11月30日 | 酷码资源

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;


转载文章请注明转载自:酷码资源

标签: , ,

留下回复

5+6? (必须)