定位忘的差不多了

发布于 2015-02-26  912 次阅读


<!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>

最后更新于 2015-02-26