質問編集履歴
1
ソーステンプレを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -25,3 +25,127 @@
|
|
25
25
|
|
26
26
|
|
27
27
|
なお、htmlで横幅を固定(width=50など)すると横幅の変更が固定されてしまい変更できなくなってしまいます。
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
以下、サンプルです。
|
32
|
+
|
33
|
+
各ライブラリはダウンロードが必要です。
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
```html
|
38
|
+
|
39
|
+
<!DOCTYPE html>
|
40
|
+
|
41
|
+
<html class="no-js">
|
42
|
+
|
43
|
+
<head>
|
44
|
+
|
45
|
+
<meta charset="utf-8">
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<style>
|
50
|
+
|
51
|
+
.ListTable {
|
52
|
+
|
53
|
+
border-collapse:collapse;
|
54
|
+
|
55
|
+
margin:10px 0 20px 0;
|
56
|
+
|
57
|
+
font-size:15px;
|
58
|
+
|
59
|
+
border-top:1px solid #5EAB62;
|
60
|
+
|
61
|
+
border-bottom:1px solid #5EAB62;
|
62
|
+
|
63
|
+
border-right:1px solid #5EAB62;
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
.ListTable th,
|
70
|
+
|
71
|
+
.ListTable td {
|
72
|
+
|
73
|
+
padding:5px;
|
74
|
+
|
75
|
+
border-left:1px solid #5EAB62;
|
76
|
+
|
77
|
+
}
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
.ListTable th {
|
82
|
+
|
83
|
+
text-align:left;
|
84
|
+
|
85
|
+
text-decoration:underline;
|
86
|
+
|
87
|
+
background:#5EAB62;
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
</style>
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<link rel="stylesheet" href="css/normalize.min.css">
|
96
|
+
|
97
|
+
<link rel="stylesheet" href="css/jquery.resizableColumns.css">
|
98
|
+
|
99
|
+
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
|
100
|
+
|
101
|
+
<script src="js/jquery.resizableColumns.min.js"></script>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<script>
|
108
|
+
|
109
|
+
$(function(){
|
110
|
+
|
111
|
+
$("table").resizableColumns({
|
112
|
+
|
113
|
+
store: window.store
|
114
|
+
|
115
|
+
});
|
116
|
+
|
117
|
+
});
|
118
|
+
|
119
|
+
</script>
|
120
|
+
|
121
|
+
</head>
|
122
|
+
|
123
|
+
<body>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<table class="ListTable">
|
128
|
+
|
129
|
+
<thead>
|
130
|
+
|
131
|
+
<tr>
|
132
|
+
|
133
|
+
<th>No</th>
|
134
|
+
|
135
|
+
<th>商品コード</th>
|
136
|
+
|
137
|
+
<th>商品名</th>
|
138
|
+
|
139
|
+
</tr>
|
140
|
+
|
141
|
+
</thead>
|
142
|
+
|
143
|
+
</table>
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
</body>
|
148
|
+
|
149
|
+
</html>
|
150
|
+
|
151
|
+
```
|