|
@@ -0,0 +1,81 @@
|
|
|
+<!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>
|
|
|
+ .nav-content {
|
|
|
+ text-align: center;
|
|
|
+ margin-top: 50px;
|
|
|
+ border-bottom: 2px solid #007bff;
|
|
|
+ padding-bottom: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .nav-content span {
|
|
|
+ font-size: 30px;
|
|
|
+ font-weight: bolder;
|
|
|
+ }
|
|
|
+
|
|
|
+ .list-content {
|
|
|
+ width: 600px;
|
|
|
+ /* border: 1px solid black; */
|
|
|
+ margin: 0 auto;
|
|
|
+ }
|
|
|
+
|
|
|
+ .list-content li {
|
|
|
+ width: 500px;
|
|
|
+ background-color: #666;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ color: white;
|
|
|
+ padding: 20px 0 20px 20px;
|
|
|
+ border-radius: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .list-content li:first-child {
|
|
|
+ background-color: #007bff;
|
|
|
+ }
|
|
|
+
|
|
|
+ .list-content li:nth-child(even) {
|
|
|
+ background-color: #999;
|
|
|
+ }
|
|
|
+
|
|
|
+ .list-content li:hover {
|
|
|
+ background-color: #007bff;
|
|
|
+ }
|
|
|
+ /* .list-content li span:nth-child(5) {
|
|
|
+ color: purple;
|
|
|
+ } */
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+
|
|
|
+<body>
|
|
|
+ <div class="container">
|
|
|
+ <div class="nav-content">
|
|
|
+ <span>我的简单网页</span>
|
|
|
+ </div>
|
|
|
+ <div class="list-content">
|
|
|
+ <p>以下是一些列表项:</p>
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <span>项目1</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>项目2</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>项目3</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>项目4</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>项目5</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</body>
|
|
|
+
|
|
|
+</html>
|