-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathindex.html
81 lines (75 loc) · 1.4 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
<!DOCTYPE html>
<html>
<head>
<!-- meta -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Grid Layout Polyfill</title>
<!-- css -->
<!-- javascript -->
<script src="libs/jquery-1.9.1.min.js"></script>
<script src="grid-layout-polyfill.js"></script>
<style>
#Grid {
border: 1px solid grey;
background-color: #ddd;
display: -ms-grid;
-ms-grid-columns: 100px 1fr 100px;
-ms-grid-rows: 100px 1fr 100px;
}
#Grid > * {
border: 1px dotted black;
}
#GridItem1 {
background: blue;
-ms-grid-column: 1;
-ms-grid-row: 1;
-ms-grid-column-span: 3;
-ms-grid-row-span: 1;
}
#GridItem2 {
background: red;
border: 3px solid yellow;
-ms-grid-column: 1;
-ms-grid-row: 2;
-ms-grid-column-span: 1;
-ms-grid-row-span: 1;
}
#GridItem3 {
position: relative;
background: green;
width: 50%;
-ms-grid-column: 2;
-ms-grid-row: 2;
-ms-grid-column-span: 1;
-ms-grid-row-span: 1;
}
#GridItemInner3 {
position: absolute;
right: 0px;
}
</style>
</head>
<body>
<div id="Grid">
<div class="GridItem" id="GridItem1">1
<br>2
<br>c
<br>d
<br>e
<br>f
<br>g
<br>h
<br>i
<br>
</div>
<div class="GridItem" id="GridItem2">2</div>
<div class="GridItem" id="GridItem3">
<div id="GridItemInner3">3a</div>3b</div>
<div class="GridItem">4 gtkjgfftlgjflkgjfd gljdfklgjdflkgjdflkgjdflg</div>
<div class="GridItem">5</div>
</div>
<p>efter</p>
<p id="output"></p>
</body>
</html>