forked from eflexsystems/colResizable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
67 lines (57 loc) · 1.01 KB
/
test.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>test</title>
<style>
table{
width: 100%;
border:1px solid #ddd;
}
thead{
width: 100%;
color: #ccc;
}
tbody{
width: 100%;
height: 200px;
}
th,td{
padding: 0.8rem;
text-align: left;
vertical-align: top;
border-left: 1px solid #ccc;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="colResizable.js"></script>
<script type="text/javascript">
$(function(){
$(".test").colResizable();
})
</script>
</head>
<body>
<table class="test">
<thead>
<tr>
<th>header 1</th>
<th>header 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>lean</td>
<td>cell 1</td>
</tr>
<tr>
<td>chacha</td>
<td>cell 2</td>
</tr>
<tr>
<td>okaoka</td>
<td>cell 3</td>
</tr>
</tbody>
</table>
</body>
</html>