<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>绝对定位</title>
</head>
<style type="text/css">
.con{
400px;
height: 400px;
border:1px solid #000;
margin: 100px auto 0;
position: relative;
}
.con div{
200px;
height: 100px;
margin: 20px;
background-color: gold;
text-align: center;
line-height: 100px;
font-size: 40px;
}
body .box1{
position: absolute;
left: -60px;
top: -60px;
background-color: green;
}
</style>
<body>
<div class="con">
<div class="box1">1</div>
<div class="box2">2</div>
<div class="box3">3</div>
</div>
</body>
</html>