-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
71 lines (61 loc) · 1.15 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
body {
margin: 20px;
padding: 20px;
background-color: #d1ffe7;
color: white;
font-family: Arial, sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
overflow: hidden;
}
/* 左上角文字样式 */
#top-left-text {
position: absolute;
top: 10px;
left: 10px;
font-size: 0.9rem;
font-weight: bold;
}
/* 右上角文字样式 */
#top-right-text {
position: absolute;
top: 10px;
right: 10px;
font-size: 0.9rem;
font-weight: bold;
text-align: right;
}
#content {
text-align: center;
padding: 20px;
display: flex;
flex-direction: column;
gap: 20px;
}
/* 标题样式 */
#title {
font-size: 3rem; /* 大标题字体 */
font-family: "Times New Roman", serif; /* 花体字体 */
}
/* 描述段落样式 */
#description {
font-size: 1rem;
line-height: 1.5;
}
/* text样式并且text是红色 */
.text {
color: red;
}
/* 页脚文字 */
.footer {
grid-area: footer;
text-align: center;
font-size: 0.8rem;
padding: 10px;
background-color: #000000; /* 页脚背景稍深 */
}
audio {
display: none;
}