hongshi-files commited on
Commit
1107109
·
verified ·
1 Parent(s): 04f648c

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +76 -13
index.html CHANGED
@@ -6,26 +6,89 @@
6
  <style>
7
  body {
8
  font-family: Arial, sans-serif;
 
 
 
9
  }
10
- ul {
11
- list-style-type: none;
 
 
 
12
  }
13
- a {
 
 
 
 
 
 
 
 
 
 
14
  text-decoration: none;
15
- color: #000;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  }
17
- .folder {
18
- font-weight: bold;
19
  }
20
  </style>
21
  </head>
22
  <body>
23
- <h1>网盘</h1>
24
- <ul>
25
- <li class="folder"><a href="folder1/index.html">文件夹1</a></li>
26
- <li class="folder"><a href="folder2/index.html">文件夹2</a></li>
27
- <li><a href="file1.html">文件1</a></li>
28
- <li><a href="file2.html">文件2</a></li>
29
- </ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  </body>
31
  </html>
 
6
  <style>
7
  body {
8
  font-family: Arial, sans-serif;
9
+ margin: 0;
10
+ padding: 0;
11
+ background-color: #f4f4f4;
12
  }
13
+ header {
14
+ background-color: #4CAF50;
15
+ color: white;
16
+ padding: 10px 0;
17
+ text-align: center;
18
  }
19
+ nav {
20
+ width: 200px;
21
+ background: #333;
22
+ height: 100vh;
23
+ position: fixed;
24
+ top: 0;
25
+ left: 0;
26
+ padding-top: 20px;
27
+ }
28
+ nav a {
29
+ color: white;
30
  text-decoration: none;
31
+ display: block;
32
+ padding: 10px;
33
+ text-align: center;
34
+ }
35
+ nav a:hover {
36
+ background: #575757;
37
+ }
38
+ main {
39
+ margin-left: 220px;
40
+ padding: 20px;
41
+ }
42
+ table {
43
+ width: 100%;
44
+ border-collapse: collapse;
45
+ }
46
+ table, th, td {
47
+ border: 1px solid #ddd;
48
+ }
49
+ th, td {
50
+ padding: 8px;
51
+ text-align: left;
52
+ }
53
+ th {
54
+ background-color: #4CAF50;
55
+ color: white;
56
  }
57
+ tr:nth-child(even) {
58
+ background-color: #f2f2f2;
59
  }
60
  </style>
61
  </head>
62
  <body>
63
+ <header>
64
+ <h1>网盘</h1>
65
+ </header>
66
+ <nav>
67
+ <a href="#">主页</a>
68
+ </nav>
69
+ <main>
70
+ <table>
71
+ <tr>
72
+ <th>名称</th>
73
+ <th>修改时间</th>
74
+ </tr>
75
+ <tr>
76
+ <td><a href="folder1/index.html">文件夹1</a></td>
77
+ <td>2024-10-30 22:53:01</td>
78
+ </tr>
79
+ <tr>
80
+ <td><a href="folder2/index.html">文件夹2</a></td>
81
+ <td>2024-10-30 22:54:12</td>
82
+ </tr>
83
+ <tr>
84
+ <td><a href="file1.html">文件1</a></td>
85
+ <td>2024-10-30 22:55:03</td>
86
+ </tr>
87
+ <tr>
88
+ <td><a href="file2.html">文件2</a></td>
89
+ <td>2024-10-30 22:56:04</td>
90
+ </tr>
91
+ </table>
92
+ </main>
93
  </body>
94
  </html>