-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
67 lines (57 loc) · 1.15 KB
/
main.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
/* 整体布局 */
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
font-family: Arial, sans-serif;
background-color: #f0f0f0;
}
h1 {
margin-bottom: 20px;
color: #333;
}
/* 按钮样式 */
button {
padding: 10px 20px;
margin: 10px;
font-size: 16px;
border: none;
border-radius: 5px;
cursor: pointer;
background-color: #4CAF50;
color: white;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #45a049;
}
button:disabled {
background-color: #ccc;
cursor: not-allowed;
}
/* 油门按钮样式 */
#throttleButton {
background-color: #008CBA;
}
#throttleButton:hover {
background-color: #007B9A;
}
/* Turbo按钮样式 */
#turboButton {
background-color: #FF5722;
}
#turboButton:hover {
background-color: #E64A19;
}
/* 油门提示文字 */
#throttleText {
margin-top: 10px;
color: #666;
}
/* 圆盘样式 */
#flywheelCanvas {
margin: 20px 0;
}