<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<style>
.div1{
background: #0c9;
width:200px;
height: 400px;
position: relative;
}
.div2{
border: 1px solid #000;
width:198px;
height: 100px;
position: absolute;
bottom: 0px
}
</style>
<body>
<div class="div1">
<div class="div2"></div>
</div>
</body>
</html>
Comments 2 条评论