<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.parent {
width: 50px;
height: 50px;
background: green;
position: relative;
}
.absolute {
width: 10000px;
height: 10000px;
background: pink;
position: absolute;
}
</style>
</head>
<body>
<div class="parent">
<div class="absolute">
</div>
</div>
</body>
</html>
你设置的height超过了浏览器,不是会滚动条吗?绝对定位不是覆盖了父的吗?