<!DOCTYPE html>
<html>
<head>
  <title>黑白网页首页 - 纯 HTML+CSS 设计</title>
  <style>
    body {
      background-color: #000;
      color: #fff;
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
    }
<pre><code>header {
  background-color: #000;
  padding: 20px;
  text-align: center;
}

h1 {
  font-size: 32px;
  margin: 0;
}

nav {
  background-color: #000;
  padding: 10px;
  text-align: center;
}

nav a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
}

section {
  padding: 50px;
  text-align: center;
}

footer {
  background-color: #000;
  padding: 20px;
  text-align: center;
}
</code></pre>
  </style>
</head>
<body>
  <header>
    <h1>黑白网页</h1>
  </header>
  <nav>
    <a href="#">首页</a>
    <a href="#">关于</a>
    <a href="#">服务</a>
    <a href="#">联系</a>
  </nav>
  <section>
    <h2>欢迎来到黑白网页</h2>
    <p>这是一个纯黑白的网页首页示例。</p>
  </section>
  <footer>
    <p>版权所有 &copy; 2021 黑白网页</p>
  </footer>
</body>
</html>
黑白网页首页 - 纯 HTML+CSS 设计

原文地址: https://www.cveoy.top/t/topic/prjX 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录