-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
154 lines (126 loc) · 3.09 KB
/
index.html
File metadata and controls
154 lines (126 loc) · 3.09 KB
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CS2304</title>
<style>
.card {
/* 相对定位 */
position: relative;
width: 200px;
height: 200px;
margin: 20px;
background-color: #758a99;
border-radius: 20px;
/* 溢出隐藏 */
overflow: hidden;
/* 弹性布局 */
display: flex;
/* 元素纵向排列 */
flex-direction: column;
/* 居中 */
align-items: center;
color: #fff;
/* 阴影 */
box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
/* 不让其被挤压 */
flex-shrink: 0;
}
.card .photo img {
width: 100%;
height: 100%;
/* 保持原有尺寸比例,裁切长边 */
object-fit: cover;
}
.card .photo {
/* 绝对定位 */
position: absolute;
top: 0;
width: 100%;
height: 100%;
border-radius: 0%;
overflow: hidden;
/* 动画过渡 */
transition: 0.5s;
}
.container {
width: 100%;
overflow: hidden;
display: flex;
margin-top: 50px;
justify-content: space-evenly;
}
.container2 {
width: 100%;
overflow: hidden;
}
h2{
text-align:center;
font-size:40px;
color:black;
}
h1{
text-align:center;
font-size:50px;
color:#fff;
}
</style>
</head>
<body
background="./img/华科.jpg"
style="
background-repeat: no-repeat;
background-attachment: fixed;
background-size: 100% 100%;
"
>
<h2>CS2304</h2>
<hr>
<div class="container2">
<div class="container">
<div class="card">
<h1>502</h1>
<a href="https://yedn.github.io/tieyewang/">查看</a>
</div>
<div class="card">
<h1>504</h1>
<a href="https://aurum114.github.io/504/">查看</a>
</div>
<div class="card">
<h1>505</h1>
<a href="https://kevinleenj.github.io/Pages-room505/">查看</a>
</div>
<div class="card">
<h1>506</h1>
<a href="https://n0hararin.github.io/506dorm.github.io/">查看</a>
</div>
<div class="card">
<h1>507</h1>
<a href="https://bolenggaier.github.io/">查看</a>
</div>
</div>
<div class="container">
<div class="card">
<h1>508</h1>
<a href="https://huster-chen23.github.io/qinshi/">查看</a>
</div>
<div class="card">
<h1>431</h1>
<a href="https://lvisla.github.io/ZYC/">查看</a>
</div>
<div class="card">
<h1>432</h1>
<a href="https://songshuang52hz.github.io/hust2304--432/">查看</a>
</div>
<div class="card">
<h1>403</h1>
<a href="https://xqrbsft.github.io/403/">查看</a>
</div>
<div class="card">
<h1>405</h1>
<a href="https://liyuyn.github.io/111/">查看</a>
</div>
</div>
</div>
</body>
</html>