效果图
下面是贴出完整代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<style>
.wrap {
width: 800px;
height: 600px;
border: 1px solid red;
position: relative;
}
.just {
padding: 10px;
position: absolute;
border: 1px solid red;
}
.garden {
width: 35px;
height: 35px;
text-align: center;
line-height: 35px;
position: absolute;
border: 1px solid blue;
border-radius: 50%;
}
</style>
<body>
<div class="wrap">
</div>
&