Invent

子DIV相对父DIV底部对齐

您现在的位置: 摘星网络_临沂网站建设优化 > 网站建设 > 网络知识 >

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