-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
94 lines (81 loc) · 1.54 KB
/
styles.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
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: #fff;
padding: 1rem 0;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}
.container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
.logo {
font-size: 1.5rem;
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
}
nav ul li {
margin-left: 1rem;
}
nav ul li a {
color: #fff;
text-decoration: none;
transition: color 0.3s;
}
nav ul li a:hover {
color: #ddd;
}
main {
padding-top: 4rem;
}
section {
padding: 4rem 1rem;
margin: 2rem 0;
background-color: #f4f4f4;
max-width: 1200px;
margin: 2rem auto;
}
.home-section {
height: 75vh; /* 3/4 of the screen height */
background-image: url('data-center.jpg');
background-size: cover; /* 確保圖片覆蓋整個區塊 */
background-position: center; /* 使圖片居中顯示 */
background-repeat: no-repeat; /* 防止圖片重複 */
display: flex;
justify-content: center;
align-items: center;
}
#mapid {
height: 500px; /* 固定高度以適應地圖顯示 */
width: 100%;
}
#back-to-top {
position: fixed;
bottom: 1rem;
right: 1rem;
background-color: #333;
color: #fff;
border: none;
padding: 0.5rem 1rem;
cursor: pointer;
display: none;
transition: display 0.3s;
}
#back-to-top:hover {
background-color: #555;
}