h5部分代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="">
<style>
#demo{
width: 100vh;
height: 60vh;
display: flex;
flex-wrap: wrap;
border: 50px solid #000;
/* position: relative; */
}
.but{
/* display: block; */
/* float: left; */
position: absolute;
width: 100vh;
height: 15vh;
top: 50px;
}
.but1{
position: absolute;
width: 100vh;
height: 15vh;
top: calc(15vh + 50px);
}
.but2{
position: absolute;
width: 100vh;
height: 15vh;
top: calc(30vh + 50px);
}
.but3{
position: absolute;
width: 100vh;
height: 15vh;
top: calc(45vh + 50px);
}