-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex测试.html
155 lines (131 loc) · 4.51 KB
/
index测试.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Apple 官网</title>
<link rel="stylesheet" href="applestyles.css">
<style>
#toolbox {
height: 0;
overflow: hidden;
transition: height 0.5s ease;
}
#toolbox.expanded {
height: 200px;
}
#toolbox ul {
list-style: none;
padding: 0;
margin: 0;
}
#toolbox li {
padding: 10px;
background-color: #f2f2f2;
border-bottom: 1px solid #ccc;
}
</style>
</head>
<body>
<header>
<!-- 导航栏 -->
<nav>
<ul>
<li><a href=" "><img src="applewebuiimg/apple-icon.png" alt="Apple-icon"></a></li>
<li><a href="Mac.html">Mac</a></li>
<li><a href="ipad.html">iPad</a></li>
<li><a href="iPhone.html">iPhone</a></li>
<li><a href="Watch.html">Watch</a></li>
<li><a href="TV.html">TV</a></li>
<li><a href="Music.html">Music</a></li>
<li><a href="Support.html">Support</a></li>
<li id="toolbox-trigger">工具箱</li>
</ul>
</nav>
<div id="toolbox">
<ul>
<li>工具1</li>
<li>工具2</li>
<li>工具3</li>
<li>工具4</li>
</ul>
</div>
</nav>
</header>
<section class="hero">
<!-- 苹果产品大图 -->
<div class="hero-image">
<img src="applewebuiimg/iphones-14.jpg" alt="Apple Products">
</div>
<!-- 标语和按钮 -->
<div class="hero-content">
<h1>欢迎来到 Apple</h1>
<p>通过创新的技术,让生活更美好。</p>
<a href="#" class="cta-button">了解更多</a>
</div>
</section>
<section class="hero2">
<!-- 苹果产品大图2 -->
<div class="hero-image2">
<img src="applewebuiimg/iPhone14color.png" alt="Apple color">
</div>
<!-- 标语和按钮 -->
<div class="hero-content2">
<h1>iPhone14</h1>
<p>两款称手尺寸,<br>一抹明黄新入列。</p>
<a href="#" class="cta-button2">了解更多</a>
<a href="#" class="cta-button2">购买</a>
</div>
</section>
<section class="hero3">
<!-- 苹果产品大图3 -->
<div class="hero-image3">
<img src="applewebuiimg/applewatchs8.png" alt="Apple watch">
</div>
<!-- 标语和按钮 -->
<!-- <div class="hero-content3">
<h1>iPhone14</h1>
<p>两款称手尺寸,<br>一抹明黄新入列。</p> -->
<!-- <a href="#" class="cta-button3">了解更多</a>
<a href="#" class="cta-button3">购买</a> -->
</div>
</section>
<section class="features">
<!-- 产品特点 -->
<div class="WangGeBuJu">
<div class="feature">
<img src="applewebuiimg/trade in.png" alt="Feature 1">
<!-- <h2>功能1</h2>
<p>这是功能1的描述。</p> -->
</div>
<div class="feature">
<img src="applewebuiimg/WWDC23.png" alt="Feature 2">
<!-- <h2>功能2</h2>
<p>这是功能2的描述。</p> -->
</div>
<div class="feature">
<img src="applewebuiimg/xzh.jpg" alt="Feature 3">
<!-- <h2>功能3</h2>
<p>这是功能3的描述。</p> -->
</div>
<div class="feature">
<img src="applewebuiimg/xzh.jpg" alt="Feature 3">
<!-- <h2>功能3</h2>
<p>这是功能3的描述。</p> -->
</div>
</section>
<script>
var trigger = document.getElementById('toolbox-trigger');
var toolbox = document.getElementById('toolbox');
trigger.addEventListener('mouseover', function () {
toolbox.classList.add('expanded');
});
trigger.addEventListener('mouseout', function () {
toolbox.classList.remove('expanded');
});
</script>
<footer>
<!-- 页脚 -->
<p>© 2023 Apple China Inc. 保留所有权利。</p>
</footer>
</body>
</html>