-
Notifications
You must be signed in to change notification settings - Fork 3
/
example.html
73 lines (72 loc) · 1.87 KB
/
example.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
<!doctype html>
<html>
<head>
<script type="text/javascript" src="resizable.js"></script>
<script type="text/javascript">
resizable.initOnDocumentReady();
</script>
<style>
.js-resizable {
-moz-user-select: none;
-o-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
.js-resizable-corner {
position: absolute;
right: 0px;
bottom: 0px;
width: 10px;
height: 10px;
background: #000;
}
.outer {
display: block;
position: relative;
width: 640px;
height: 480px;
margin: 20px;
background-color: #EEE;
}
.inner {
display: block;
position: absolute;
min-width: 100px;
min-height: 50px;
padding: 20px;
}
.inner--1 {
left: 100px;
top: 100px;
width: 300px;
height: 200px;
background-color: #b1b1ff;
}
.inner--2 {
left: 100px;
top: 50px;
background-color: #92f192;
}
.inner--3 {
left: 400px;
top: 200px;
background-color: #ec7777;
}
</style>
</head>
<body>
<div class="outer js-resizable-limiter">
<div class="inner inner--1 js-resizable js-resizable-limiter">
Content A
<div class="inner inner--2 js-resizable">
Sub-content A
</div>
</div>
<div class="inner inner--3 js-resizable">
Content B
</div>
</div>
</body>
</html>