-
Notifications
You must be signed in to change notification settings - Fork 183
/
testJQ3.html
68 lines (58 loc) · 1.08 KB
/
testJQ3.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
<!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://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-migrate/3.3.0/jquery-migrate.js"></script>
<script type="text/javascript" src="colResizable-1.6.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>