-
Notifications
You must be signed in to change notification settings - Fork 5
/
gap.html
57 lines (57 loc) · 1.48 KB
/
gap.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
<!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>
.container {
width: 100px;
height: 100px;
display: flex;
outline: 1.4px solid blue;
background-color: yellow;
position: relative;
}
.abs-child {
position: absolute;
top: 0px;
left: 0px;
width: 10px;
height: 10px;
background-color: aqua;
}
.container1 {
width: 10px;
height: 10px;
display: flex;
outline: 1px solid red;
/* background-color: yellow; */
}
.container div, .container1 div {
/* height: 10.6px; */
flex-grow: 1;
/* background: #88a86e; */
}
.child1 {
background-color: #2c8a20;
}
.child2 {
background-color: #323f7c;
}
</style>
</head>
<body>
<div class="container">
<!-- <div class="child1"></div> -->
<!-- <div class="child2"></div> -->
<div class="abs-child"></div>
</div>
<!-- <div class="container1">
<div class="child1"></div>
<div class="child2"></div>
</div> -->
<script>document.write(window.devicePixelRatio)</script>
</body>
</html>