-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
113 lines (97 loc) · 1.95 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
* {
box-sizing: border-box;
}
/* styles.css */
body {
font-family: Arial, sans-serif;
/* 使用背景图片 */
/*background-image: url('背景.png');
/* 设置背景颜色,以防图片未加载时显示 */
background-color: #f0f0f0;
/* 设置背景图片的其他属性 */
/*background-repeat: no-repeat; /* 不重复背景图片 */
background-size: cover; /* 背景图片覆盖整个容器 */
}
#bj {
position: fixed; /* 或absolute */
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1; /* 确保背景位于所有其他内容之下 */
background-image: url('your-background-url');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
#content {
position: relative;
z-index: 1; /* 确保内容位于背景之上 */
}
header {
background-color: #21499a;
color: white;
padding: 1em;
text-align: center;
}
header nav ul {
list-style: none;
padding: 0;
}
header nav ul li {
display: inline;
margin-right: 1em;
}
header nav ul li a {
color: white;
text-decoration: none;
}
main {
max-width: 800px;
margin: auto;
padding: 1em;
}
.feature, .screenshot {
margin-bottom: 1em;
}
.feature img, .screenshot img {
width: 100%;
height: auto;
}
video {
width: 100%; /* 视频宽度与容器相同 */
height: auto; /* 高度自动调整 */
}
.footer-links {
text-align: center;
}
.footer-links ul {
list-style-type: none;
padding: 0;
}
.footer-links li {
display: inline-block;
color: white;
margin-right: 10px;
}
.footer-links a {
color: #666;
text-decoration: none;
}
footer {
background-color: #21499a;
color: white;
text-align: center;
padding: 1em;
}
button {
background-color: #9A347C;
color: white;
border: none;
padding: 0.5em 1em;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #9A347C;
}