-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
430 lines (347 loc) · 7.56 KB
/
style.css
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
body {
margin: 0; /* 移除默认的外边距 */
overflow: hidden; /* 防止滚动条出现,确保全景图像覆盖整个视口 */
box-sizing: border-box; /* 确保元素的总宽度和高度包括内边距和边框 */
font-family: 'Montserrat', sans-serif; /* 设置默认字体为 Montserrat */
}
.tour {
/* background: #056286; 设置背景颜色 */
background-image: url("images/进入封面.jpg");
background-size: cover;
background-position: center;
height: 100vh; /* 设置高度为视口的100% */
margin: 0; /* 移除外边距 */
}
.logo {
position: absolute ; /* 绝对定位,相对于其正常位置进行定位 */
top: 35px; /* 上边距为10像素 */
right: -100px; /* 左边距为10像素 */
z-index: 10; /* 设置层级为10,确保在背景图片之上 */
transform: scale(0.7); /* 初始状态就放大到120% */
/* background: transparent; 确保背景是透明的 */
}
.author{
position: absolute; /* 绝对定位,相对于其正常位置进行定位 */
bottom: 20px;
right: 50px;
color: rgb(255, 255, 255); /* 设置字体颜色为白色 */
font-size: 30px; /* 设置字体大小为14像素 */
}
h1 {
margin: 0; /* 移除标题的外边距 */
padding-top: 0; /* 上内边距为视口高度的10% */
color: rgb(255, 255, 255); /* 设置标题文本颜色为白色 */
font-size: 55px;
}
.tour__head {
padding-top: 11vh; /* 上内边距为视口高度的10% */
text-align: center; /* 文本居中对齐 */
margin-bottom: 50px; /* 下外边距为50像素 */
}
/* .tour_cover {
position: absolute; /* 绝对定位,相对于其正常位置进行定位 */
/* z-index: -10; 设置层级为负数,确保在背景图片之上 */
/* object-fit: contain; */
.tour__map {
position: absolute; /* 绝对定位,相对于其正常位置进行定位 */
top: 0; /* 顶部对齐 */
right: 0; /* 右侧对齐 */
width: 9.01%; /* 设置宽度为100% */
height: 26.4%; /* 设置高度为100% */
overflow: hidden; /* 隐藏溢出的内容 */
border: 5px solid #22caae; /* 设置边框样式 */
border-radius: 10px; /* 设置边框圆角 */
}
#mapImage {
width: 100%; /* 或使用 max-width */
height: 100%; /* 或使用 max-height */
object-fit: contain; /* 保持图片比例,图片完整显示 */
}
.image-container {
height: 58rem; /* 设置固定高度 */
position: relative; /* 相对定位,用于相对于其正常位置进行定位 */
/* width: 100%; 设置宽度为父元素宽度的100% */
opacity: 0;
transition: opacity 2s ease-in-out; /* 平滑过渡效果 */
margin: 0 auto; /* 上下外边距为0,左右自动(居中) */
margin-left: 10%; /* 左外边距为父元素宽度的12% */
margin-right: 10%; /* 右外边距为父元素宽度的12% */
overflow: hidden; /* 隐藏溢出的内容 */
border: 2px solid #ebb47a; /* 设置边框样式 */
border-radius: 10px; /* 设置边框圆角 */
}
canvas {
width: 100%; /* 设置 canvas 宽度为父元素的100% */
/* 注意:height 属性未在这里设置,canvas 的高度通常会根据其宽度和宽高比自动调整 */
}
/* 添加模态对话框样式 */
/* 放大器 */
/* 模态对话框整体样式 */
.modal {
display: none; /* 默认隐藏 */
position: fixed; /* 使用固定定位 */
z-index: 1; /* 设置层级以确保在顶层显示 */
/* 居中对齐 */
left: 10%;
right: 10%;
top: 10%;
bottom: 10%;
width: 80%; /* 宽度100% */
height: 80%; /* 高度100% */
overflow: auto; /* 允许滚动 */
background-color: rgb(0,0,0); /* 设置背景颜色为黑色 */
background-color: rgba(0,0,0,0.9); /* 使用黑色半透明作为背景 */
}
/* 模态对话框内容样式 */
.modal-content {
margin: auto;
display: block;
width: 100%; /* 设置宽度为80%,或根据需求调整 */
max-width: 785px; /*设置最大宽度为800像素*/
height: 100%; /* 设置高度为100% */
max-height: 100%; /* 设置最大高度为100%*/
overflow: auto; /* 允许滚动 */
}
/* 关闭按钮样式 */
.close {
position: absolute;
top: 15px;
right: 35px;
color: #fff; /* 白色字体 */
font-size: 40px; /* 设置字体大小为40像素 */
font-weight: bold; /* 设置字体加粗 */
cursor: pointer; /* 鼠标指针样式为手型 */
}
/* 按钮样式 */
.map-button {
cursor: pointer;
position: absolute;
/* 设置合适的内边距、边框和背景色 */
padding: 3px;
border: 1px solid #fff; /* 白色边框 */
background-color: rgba(23, 150, 212, 0.7); /* 半透明背景 */
/* 按钮形状为圆形 */
border-radius: 50%;
/* color: #fff; 白色文字 */
/* font-size: 12px; */
/* 初始时隐藏,通过 JavaScript 调整 */
display: none;
/* 确保按钮在图片之上 */
z-index: 0;
}
.map-button:hover {
background-color: rgba(23, 150, 212, 1);
}
/* 可能需要根据小地图图片的实际尺寸调整按钮的 `top` 和 `left` 值 */
#view0 {
bottom: 25.5%;
left: 39.5%;
}
#view1 {
bottom:34.5%;
left: 36.5%;
}
#view2 {
bottom: 44%;
left: 36.5%;
}
#view3 {
bottom: 48%;
left: 34.5%;
}
#view4 {
bottom: 48.5%;
left: 27%;
}
#view5 {
bottom: 49.5%;
left: 24%;
}
#view6 {
bottom: 48%;
left: 21%;
}
#view7 {
bottom: 53%;
left: 21%;
}
#view8 {
bottom: 52%;
left: 27%;
}
#view9 {
bottom:48%;
left: 42%;
}
#view10 {
bottom: 57%;
left: 39.4%;
}
#view11 {
bottom: 68%;
left: 39.4%;
}
#view12 {
bottom: 78.7%;
left: 58%;
}
#view13 {
bottom: 78.7%;
left: 63.4%;
}
#view14 {
bottom: 81.37%;
left: 55%;
}
#view15 {
bottom: 81.35%;
left: 60%;
}
#view16 {
bottom: 84.5%;
left: 60%;
}
#view17 {
bottom: 81.5%;
left: 49%;
}
#view18 {
bottom: 75.8%;
left: 49%;
}
#view19 {
bottom: 76%;
left: 43.5%;
}
#view20 {
bottom: 75%;
left: 26%;
}
#view21 {
bottom: 83%;
left: 19%;
}
#view22 {
bottom:90%;
left: 20%;
}
#view23 {
bottom: 90%;
left: 55%;
}
#view24 {
bottom:90% ;
left: 63%;
}
#view25 {
bottom: 84.5%;
left: 74%;
}
#view26 {
bottom: 79%;
left: 74%;
}
#view27 {
bottom: 73%;
left: 74%;
}
#view28 {
bottom: 68%;
left: 74%;
}
#view29 {
bottom: 68%;
left: 83%;
}
#view30 {
bottom: 52%;
left: 83%;
}
#view31 {
bottom:50%;
left: 75%;
}
#view32 {
bottom: 47%;
left: 74%;
}
#view33 {
bottom: 40%;
left: 75%;
}
#view34 {
bottom: 35%;
left: 75%;
}
#view35 {
bottom: 35%;
left: 85%;
}
#view36 {
bottom: 30%;
left: 85%;
}
/* #view37 {
bottom: 0;
left: 95%;
} */
#view38 {
bottom: 24%;
left: 75%;
}
#view39 {
bottom: 15%;
left: 85%;
}
#view40 {
bottom: 10%;
left: 85%;
}
#view41 {
bottom: 10%;
left: 63%;
}
#view42 {
bottom: 7%;
left: 63%;
}
#view43 {
bottom: 8%;
left: 51%;
}
#view44 {
bottom: 12%;
left: 51%;
}
#view45 {
bottom: 18%;
left: 51%;
}
#view46 {
bottom: 24%;
left: 51%;
}
#view47 {
bottom: 9%;
left: 39%;
}
#view48 {
bottom: 10%;
left: 23%;
}
#view49 {
bottom: 17%;
left: 18%;
}
#view50 {
bottom: 25.5%;
left: 18%;
}
#view51 {
bottom: 33%;
left: 51.2%;
}
#view52 {
bottom: 33%;
left: 57%;
}