SOURCE

console 命令行工具 X clear

                    
>
console
<!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>HTML + CSS</title>
    <link rel="stylesheet" href="styles.css" />
  </head>

  <body>
    <header>Header</header>
    <div
      class="parallax-box"
      style="background-image: url('https://picsum.photos/1200')"
    >
      <h1>Parallax</h1>
    </div>
    <h1>Parallax Scroll!</h1>
    <div
      class="parallax-box"
      style="background-image: url('https://picsum.photos/1320')"
    >
      <h1>Parallax</h1>
    </div>
    <footer>Footer</footer>
  </body>
</html>
body {
  margin: 0;
}
.parallax-box {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-attachment: fixed;
}
header {
  color: white;
  background-color: black;
}
footer {
  color: white;
  background-color: black;
}