forked from desandro/get-size
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (67 loc) · 1.39 KB
/
index.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>getSize</title>
<style>
.container {
width: 300px;
height: 200px;
margin-bottom: 10px;
border: 1px solid;
position: relative;
}
.box {
color: blue;
background: pink;
}
.border-box {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#box1, #box2 {
width: 50%;
height: 50%;
border: 10px solid;
padding: 10px;
}
#box3, #box4 {
width: 50%;
height: 50%;
border: 0px solid;
margin: 10%;
padding: 10px;
}
#box5, #box6 {
width: 100px;
height: 100px;
border: 10px solid;
margin: 10%;
padding: 5%;
}
</style>
</head>
<body>
<h1>getSize</h1>
<div class="container">
<div id="box1" class="box">box1</div>
</div>
<div class="container">
<div id="box2" class="box border-box">box2</div>
</div>
<div class="container">
<div id="box3" class="box">box3</div>
</div>
<div class="container">
<div id="box4" class="box border-box">box4</div>
</div>
<div class="container">
<div id="box5" class="box">box5</div>
</div>
<div class="container">
<div id="box6" class="box border-box">box6</div>
</div>
<script src="get-size.js"></script>
</body>
</html>