定位忘的差不多了 – 梦魂

定位忘的差不多了

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

2 thoughts on “定位忘的差不多了

发表评论