<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>相对定位</title>
<style>
/*所谓的相对定位,
即是在原来位置的基础上,
进行位置的调整。*/
.aaa{
width:100px;
height:100px;
background-color: #008000;
margin-top: 100px;
position:relative;
top: 200px;
left: 200px;
}
.bbb{
width:100px;
height:100px;
background-color: #00FF00;
}
</style>
</head>
<body>
<div class="aaa">
</div>
<div class="bbb">
</div>
</body>
</html>