<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 0 ;
padding: 0;
}
.box1{
height: 800px;
text-align: center;
background: purple url(img/jn.jpg) no-repeat center;
background-size: 100%;
background-attachment: fixed;
color: white;
}
.box2{
height: 800px;
text-align: center;
background: palegreen url(img/hzy.jpg) no-repeat center;
background-size: 100%;
background-attachment: fixed;
color: white;
}
.box3{
height: 800px;
text-align: center;
background: forestgreen url(img/mdx.jpg) no-repeat center;
background-size: 100% 100%;
background-attachment: fixed;
color: white;
}
</style>
</head>
<body>
<div class="box1">第一张图:基努里维斯</div>
<div class="box2">第二张图:河正宇</div>
<div class="box3">第三张图:马东锡</div>
</body>
</html>
···