Spaces:
Running
Running
Update index.html
Browse files- index.html +35 -10
index.html
CHANGED
|
@@ -6,10 +6,11 @@
|
|
| 6 |
<title>团课展示汇报</title>
|
| 7 |
<style>
|
| 8 |
body {
|
| 9 |
-
font-family: Arial, sans-serif;
|
| 10 |
-
background-color: #
|
| 11 |
margin: 0;
|
| 12 |
padding: 0;
|
|
|
|
| 13 |
}
|
| 14 |
|
| 15 |
.container {
|
|
@@ -18,38 +19,56 @@
|
|
| 18 |
padding: 20px;
|
| 19 |
background: white;
|
| 20 |
border-radius: 10px;
|
| 21 |
-
box-shadow: 0 0
|
|
|
|
| 22 |
}
|
| 23 |
|
| 24 |
.page {
|
| 25 |
display: none; /* 隐藏所有页面 */
|
|
|
|
|
|
|
|
|
|
| 26 |
}
|
| 27 |
|
| 28 |
.page.active {
|
| 29 |
display: block; /* 仅显示活动页面 */
|
|
|
|
|
|
|
| 30 |
}
|
| 31 |
|
| 32 |
h1 {
|
| 33 |
-
color: #
|
|
|
|
|
|
|
| 34 |
}
|
| 35 |
|
| 36 |
p, ul, ol {
|
| 37 |
line-height: 1.6;
|
|
|
|
|
|
|
| 38 |
}
|
| 39 |
|
| 40 |
button {
|
| 41 |
margin-top: 20px;
|
| 42 |
-
padding: 10px
|
| 43 |
border: none;
|
| 44 |
-
background-color: #
|
| 45 |
color: white;
|
| 46 |
cursor: pointer;
|
| 47 |
border-radius: 5px;
|
| 48 |
font-size: 16px;
|
|
|
|
| 49 |
}
|
| 50 |
|
| 51 |
button:hover {
|
| 52 |
-
background-color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
}
|
| 54 |
</style>
|
| 55 |
</head>
|
|
@@ -92,14 +111,21 @@
|
|
| 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 =>
|
| 102 |
-
|
|
|
|
|
|
|
|
|
|
| 103 |
}
|
| 104 |
|
| 105 |
function nextPage(page) {
|
|
@@ -114,4 +140,3 @@
|
|
| 114 |
</script>
|
| 115 |
</body>
|
| 116 |
</html>
|
| 117 |
-
|
|
|
|
| 6 |
<title>团课展示汇报</title>
|
| 7 |
<style>
|
| 8 |
body {
|
| 9 |
+
font-family: 'Arial', sans-serif;
|
| 10 |
+
background-color: #f8f8f8;
|
| 11 |
margin: 0;
|
| 12 |
padding: 0;
|
| 13 |
+
color: #333;
|
| 14 |
}
|
| 15 |
|
| 16 |
.container {
|
|
|
|
| 19 |
padding: 20px;
|
| 20 |
background: white;
|
| 21 |
border-radius: 10px;
|
| 22 |
+
box-shadow: 0 0 20px rgba(0,0,0,0.2);
|
| 23 |
+
overflow: hidden;
|
| 24 |
}
|
| 25 |
|
| 26 |
.page {
|
| 27 |
display: none; /* 隐藏所有页面 */
|
| 28 |
+
opacity: 0;
|
| 29 |
+
transform: translateY(20px);
|
| 30 |
+
transition: opacity 0.5s ease, transform 0.5s ease;
|
| 31 |
}
|
| 32 |
|
| 33 |
.page.active {
|
| 34 |
display: block; /* 仅显示活动页面 */
|
| 35 |
+
opacity: 1;
|
| 36 |
+
transform: translateY(0);
|
| 37 |
}
|
| 38 |
|
| 39 |
h1 {
|
| 40 |
+
color: #c0392b;
|
| 41 |
+
text-align: center;
|
| 42 |
+
margin-bottom: 20px;
|
| 43 |
}
|
| 44 |
|
| 45 |
p, ul, ol {
|
| 46 |
line-height: 1.6;
|
| 47 |
+
font-size: 1.1em;
|
| 48 |
+
margin-bottom: 15px;
|
| 49 |
}
|
| 50 |
|
| 51 |
button {
|
| 52 |
margin-top: 20px;
|
| 53 |
+
padding: 10px 20px;
|
| 54 |
border: none;
|
| 55 |
+
background-color: #c0392b;
|
| 56 |
color: white;
|
| 57 |
cursor: pointer;
|
| 58 |
border-radius: 5px;
|
| 59 |
font-size: 16px;
|
| 60 |
+
transition: background-color 0.3s;
|
| 61 |
}
|
| 62 |
|
| 63 |
button:hover {
|
| 64 |
+
background-color: #a52a2a;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
.footer {
|
| 68 |
+
text-align: center;
|
| 69 |
+
margin-top: 30px;
|
| 70 |
+
font-size: 0.9em;
|
| 71 |
+
color: #777;
|
| 72 |
}
|
| 73 |
</style>
|
| 74 |
</head>
|
|
|
|
| 111 |
</div>
|
| 112 |
</div>
|
| 113 |
|
| 114 |
+
<div class="footer">
|
| 115 |
+
<p>© 2024 团队展示</p>
|
| 116 |
+
</div>
|
| 117 |
+
|
| 118 |
<script>
|
| 119 |
let currentPage = 1;
|
| 120 |
showPage(currentPage);
|
| 121 |
|
| 122 |
function showPage(page) {
|
| 123 |
const pages = document.querySelectorAll('.page');
|
| 124 |
+
pages.forEach(p => {
|
| 125 |
+
p.classList.remove('active'); // 隐藏所有页面
|
| 126 |
+
});
|
| 127 |
+
const activePage = document.getElementById(`page${page}`);
|
| 128 |
+
activePage.classList.add('active'); // 显示当前页面
|
| 129 |
}
|
| 130 |
|
| 131 |
function nextPage(page) {
|
|
|
|
| 140 |
</script>
|
| 141 |
</body>
|
| 142 |
</html>
|
|
|