-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtable.html
More file actions
57 lines (57 loc) · 1.29 KB
/
Copy pathtable.html
File metadata and controls
57 lines (57 loc) · 1.29 KB
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 {
display: inline-block;
position: relative;
overflow: hidden;
}
#table {
display: block;
}
.resize {
position: absolute;
left: 0;
top: 0;
}
.resize.col {
width: 1px;
height: 100%;
background-color: #ff5000;
left: -100px;
cursor: col-resize;
}
.resize.row {
width: 100%;
height: 1px;
background-color: #ff5000;
top: -100px;
cursor: row-resize;
}
</style>
</head>
<body>
<canvas id="demo"></canvas>
<div class="container">
<canvas id="table"></canvas>
<div class="resize col"></div>
<div class="resize col"></div>
<div class="resize row"></div>
<div class="resize row"></div>
</div>
<script src="./table.js"></script>
<script>
var table = new Table({
el: document.querySelector("#table"),
width: 600,
height: 700,
scale: 2,
});
</script>
</body>
</html>