-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflex2.html
62 lines (54 loc) · 1.06 KB
/
flex2.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<style>
.cont{
display:flex;
}
.a{
width:12.5%;
height:12.5%;
}
@media screen and(min-width:1024px){.cont{
display:flex;
}
.a{
width:12.5%;
height:12.5%;
}}
@media (min-width:768px) and (max-width:1023px){
.cont{
display:flex;
flex-wrap:wrap;
height:50%;
width:50%;
justify-content:center;
}
.a{
width:46%;
height:46%;
}}
@media screen and (max-width:767px){
.cont{
display:flex;
flex-direction:column;
justify-content:center;
}
.a{
width:50%;
height:50%;
}
}
</style>
</head>
<body>
<div class="cont">
<img class="a" src="https://varlamov.me/2018/chinaput10/45.jpg" >
<img class="a" src="https://varlamov.me/2018/chinaput10/42.jpg" >
<img class="a" src="https://varlamov.me/2018/chinaput10/47.jpg" >
<img class="a" src="https://lj-top.ru/proxyimage/https://varlamov.me/2018/chinaput10/43.jpg" >
</div>
</body>
</html>