<head>
<style>
* {
margin: 0;
padding: 0;
}
.outer {
width: 200px;
height: 200px;
background: red;
position: absolute;
margin: 20px;
}
.inner {
width: 50px;
height: 50px;
background: green;
position: absolute;
left: 20px;
top: 20px;
}
</style>
</head>
<body>
<div class="outer">
<div class="inner">
</div>
</div>
</div>
</body>
父元素margin的边缘
注意:不是页面的边缘