您的位置:首页 > 其它

div 对齐父容器底部

2014-03-05 14:05 204 查看
<!DOCTYPE html>
<html>
<head>
<title>Listening to DOM events</title>
<style type="text/css">
.box1 {
border: 1px #cccccc solid;
width: 500px;
height: 600px;
position: absolute;
}

.box2 {
border-top: 1px #cccccc solid;
width: 28px;
height: 22px;
position: absolute;
bottom: 0;
}
</style>
</head>
<body>

<div class="box1" style="border: 1px solid red;">
<div class="box2" style="border: 1px solid blue;"></div>
</div>
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: