首页 > 编程语言 >一个简单的个人导航页html源码

一个简单的个人导航页html源码

时间:2024-09-13 21:25:06浏览次数:7  
标签:flex center color xxx 导航页 html 源码 nav border

<!DOCTYPE html>
<html lang="zh-cn">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>xxx个人导航页</title>
  <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
  <style>

    body {
      background: linear-gradient(to bottom right, #ff99cc, #66ccff);
    }
    .nav {
        margin-top: 25px;
    }

   .nav-link {
      color: #333;
      font-size: 18px;
      border: 1px solid #ddd;
      padding: 10px 20px;
      margin-right: 10px;
      border-radius: 5px;
    }

   .nav-link:hover {
      color: #007bff;
    }

   .container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100vh;
    }

    .container2 {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 80vh;
      background-color: rgba(255, 255, 255, 0.85);
      padding: 25px;
      border-radius: 2%;
      box-shadow: #ddd;
    }


    nav ul {
      list-style: none;
      padding: 0;
      display: flex;
    }
  </style>
</head>

<body>

  <div class="container">
    <div class="container2">
    <h1>printf("xiin\n");</h1>
    <nav>
      <ul class="nav">
        <li class="nav-item">
          <a class="nav-link" href="https://www.cnblogs.com/xiins">博客 / blog</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#">论坛 / bbs</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#">QQ: xxx</a>
        </li>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#">Mail: xxx</a>
        </li>
      </ul>
    </nav>
    </div>
    <div class="copyright">
        © 2024 xxx All Rights Reserved.
    </div>
  </div>

  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>

</html>

标签:flex,center,color,xxx,导航页,html,源码,nav,border
From: https://www.cnblogs.com/xiins/p/18412902

相关文章