<!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>
div 对齐父容器底部
最新推荐文章于 2021-08-03 18:25:05 发布