shadowkinga commited on
Commit
28899d6
·
verified ·
1 Parent(s): 617dae9

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +69 -2
index.html CHANGED
@@ -4,7 +4,54 @@
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>团课展示汇报</title>
7
- <link rel="stylesheet" href="styles.css">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  </head>
9
  <body>
10
  <div class="container">
@@ -45,6 +92,26 @@
45
  </div>
46
  </div>
47
 
48
- <script src="script.js"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  </body>
50
  </html>
 
 
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>团课展示汇报</title>
7
+ <style>
8
+ body {
9
+ font-family: Arial, sans-serif;
10
+ background-color: #f4f4f4;
11
+ margin: 0;
12
+ padding: 0;
13
+ }
14
+
15
+ .container {
16
+ max-width: 800px;
17
+ margin: 50px auto;
18
+ padding: 20px;
19
+ background: white;
20
+ border-radius: 10px;
21
+ box-shadow: 0 0 10px rgba(0,0,0,0.1);
22
+ }
23
+
24
+ .page {
25
+ display: none; /* 隐藏所有页面 */
26
+ }
27
+
28
+ .page.active {
29
+ display: block; /* 仅显示活动页面 */
30
+ }
31
+
32
+ h1 {
33
+ color: #333;
34
+ }
35
+
36
+ p, ul, ol {
37
+ line-height: 1.6;
38
+ }
39
+
40
+ button {
41
+ margin-top: 20px;
42
+ padding: 10px 15px;
43
+ border: none;
44
+ background-color: #5cb85c;
45
+ color: white;
46
+ cursor: pointer;
47
+ border-radius: 5px;
48
+ font-size: 16px;
49
+ }
50
+
51
+ button:hover {
52
+ background-color: #4cae4c;
53
+ }
54
+ </style>
55
  </head>
56
  <body>
57
  <div class="container">
 
92
  </div>
93
  </div>
94
 
95
+ <script>
96
+ let currentPage = 1;
97
+ showPage(currentPage);
98
+
99
+ function showPage(page) {
100
+ const pages = document.querySelectorAll('.page');
101
+ pages.forEach(p => p.classList.remove('active')); // 隐藏所有页面
102
+ document.getElementById(`page${page}`).classList.add('active'); // 显示当前页面
103
+ }
104
+
105
+ function nextPage(page) {
106
+ currentPage = page;
107
+ showPage(currentPage);
108
+ }
109
+
110
+ function prevPage(page) {
111
+ currentPage = page;
112
+ showPage(currentPage);
113
+ }
114
+ </script>
115
  </body>
116
  </html>
117
+