-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmyweb.html
260 lines (259 loc) · 7.74 KB
/
myweb.html
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
body {
margin: 0;
height: 100vh;
background-color: #eee;
}
/* * {
border: 1px solid black;
} */
.flex {
display: flex;
}
.baiSe {
background-color: white;
box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px,
rgba(0, 0, 0, 0.23) 0px 3px 6px;
}
.flex1 {
flex: 1;
}
.column {
flex-direction: column;
}
.row {
flex-direction: row;
}
.mg8 {
margin: 8px;
}
.mgr8 {
margin-right: 8px;
}
.mgt8 {
margin-top: 8px;
}
.daohang {
padding: 10px 20px;
border-bottom: 1px solid rgb(190, 190, 190);
font-size: 14px;
color: #666;
}
/* 小屏幕模式 */
@media (max-width: 600px) {
.ceBian {
display: none;
}
.neiRong {
flex-direction: column;
}
.shuJuQu {
flex-direction: column;
}
}
.heiSe {
background-color: black;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
padding: 12px 16px;
z-index: 1;
}
.dropdown:hover .dropdown-content {
display: block;
}
.smallRA {
width: 13px;
height: 13px;
border: 1px solid #0f1520;
border-top: none;
border-left: none;
transform: rotate(45deg);
}
</style>
</head>
<body class="flex">
<!-- 侧边栏 -->
<div style="width: 200px; z-index: 2" class="baiSe ceBian">
<!-- 头像栏 -->
<div
style="
padding: 10px;
align-items: center;
justify-items: center;
border-bottom: 1px solid #999;
"
class="flex"
>
<img
src="https://img.zcool.cn/community/01c9a75999622700000021296d2bd6.jpg@1280w_1l_2o_100sh.jpg"
width="40px"
height="40px"
alt=""
/>
<div style="margin-left: 10px">MONO</div>
</div>
<!-- 导航栏 -->
<div class="flex1">
<div class="daohang">下午茶</div>
<div class="daohang">电子杂志</div>
<div class="daohang dropdown flex row">
<span>发现</span>
<div class="smallRA"></div>
<div class="dropdown-content">
<p>小组推荐</p>
<p>随机入口</p>
<p>编辑推荐</p>
</div>
</div>
<div class="daohang">社区</div>
<div class="daohang">我的</div>
</div>
</div>
<!-- 主边框 -->
<div class="flex1 flex column">
<!-- 头部栏 -->
<div style="height: 60px; z-index: 1" class="baiSe"></div>
<!-- 内容区 -->
<div style="overflow: auto" class="flex1 flex neiRong">
<!-- 左区 -->
<div style="flex: 3" class="flex column mg8">
<!-- 数据区 -->
<div class="flex shuJuQu">
<!-- 数据块 -->
<div
style="
height: 100px;
align-items: center;
justify-items: center;
border-bottom: 1px solid #999;
"
class="flex1 baiSe mgr8 flex"
>
<img
src="https://img.zcool.cn/community/01c9a75999622700000021296d2bd6.jpg@1280w_1l_2o_100sh.jpg"
width="40px"
height="40px"
alt=""
/>
<div>
<div style="margin-left: 10px">MONO</div>
<div style="margin-left: 10px">MONO</div>
</div>
</div>
<div
style="
height: 100px;
align-items: center;
justify-items: center;
border-bottom: 1px solid #999;
"
class="flex1 baiSe mgr8 flex"
>
<img
src="https://img.zcool.cn/community/01c9a75999622700000021296d2bd6.jpg@1280w_1l_2o_100sh.jpg"
width="40px"
height="40px"
alt=""
/>
<div>
<div style="margin-left: 10px">MONO</div>
<div style="margin-left: 10px">MONO</div>
</div>
</div>
<div
style="
height: 100px;
align-items: center;
justify-items: center;
border-bottom: 1px solid #999;
"
class="flex1 baiSe mgr8 flex"
>
<img
src="https://img.zcool.cn/community/01c9a75999622700000021296d2bd6.jpg@1280w_1l_2o_100sh.jpg"
width="40px"
height="40px"
alt=""
/>
<div>
<div style="margin-left: 10px">MONO</div>
<div style="margin-left: 10px">MONO</div>
</div>
</div>
<div
style="
height: 100px;
align-items: center;
justify-items: center;
border-bottom: 1px solid #999;
"
class="flex1 baiSe mgr8 flex"
>
<img
src="https://img.zcool.cn/community/01c9a75999622700000021296d2bd6.jpg@1280w_1l_2o_100sh.jpg"
width="40px"
height="40px"
alt=""
/>
<div>
<div style="margin-left: 10px">MONO</div>
<div style="margin-left: 10px">MONO</div>
</div>
</div>
</div>
<!-- 列表区 -->
<div class="flex column">
<!-- 列表项 -->
<div style="height: 160px" class="baiSe mgt8">
<img
src="https://img.zcool.cn/community/0119765d77cc52a801211d53b63aba.png@1280w_1l_2o_100sh.png"
height="160px"
alt=""
/>
</div>
<div style="height: 160px" class="baiSe mgt8">
<img
src="https://img.zcool.cn/community/0119765d77cc52a801211d53b63aba.png@1280w_1l_2o_100sh.png"
height="160px"
alt=""
/>
</div>
<div style="height: 160px" class="baiSe mgt8">
<img
src="https://img.zcool.cn/community/0119765d77cc52a801211d53b63aba.png@1280w_1l_2o_100sh.png"
height="160px"
alt=""
/>
</div>
<div style="height: 160px" class="baiSe mgt8"></div>
<div style="height: 160px" class="baiSe mgt8"></div>
<div style="height: 160px" class="baiSe mgt8"></div>
</div>
</div>
<!-- 右区 -->
<div style="flex: 1" class="flex column">
<!-- 提示区 -->
<div style="height: 150px" class="baiSe mgt8"></div>
<!-- 消息区 -->
<div style="height: 300px" class="baiSe mgt8"></div>
</div>
</div>
</div>
</body>
</html>