回答編集履歴

1

ソース修正

2020/01/27 08:17

投稿

yureighost
yureighost

スコア2183

test CHANGED
@@ -4,11 +4,37 @@
4
4
 
5
5
  中間の要素を変更すると難易度が跳ね上がるからです。
6
6
 
7
- 統合版のscriptとbody部分に修正を入れています。
7
+ ~~統合版のscriptとbody部分に修正を入れています。~~
8
+
9
+ HTMLの全ソースを貼っておきます。
8
10
 
9
11
  ```HTML
10
12
 
13
+ <!doctype html>
14
+
15
+ <html lang="ja">
16
+
11
- ・・・
17
+ <head>
18
+
19
+ <meta charset="utf-8">
20
+
21
+ <title></title>
22
+
23
+
24
+
25
+ <!--tagit-->
26
+
27
+ <script src="https://code.jquery.com/jquery-1.9.1.js"></script>
28
+
29
+ <link rel="stylesheet" type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/flick/jquery-ui.css">
30
+
31
+ <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
32
+
33
+ <link rel="stylesheet" type="text/css" href="tagit/css/jquery.tagit.css">
34
+
35
+ <script type="text/javascript" src="tagit/js/tag-it.min.js"></script>
36
+
37
+
12
38
 
13
39
  <script type="text/javascript">
14
40
 
@@ -94,7 +120,79 @@
94
120
 
95
121
  </script>
96
122
 
123
+
124
+
125
+ <style type="text/css">
126
+
127
+ <!--
128
+
129
+ #input_plural {
130
+
131
+ margin: 10px 0;
132
+
133
+ }
134
+
135
+
136
+
137
+ #input_plural input.form-control1 {
138
+
139
+ display: inline-block;
140
+
141
+ width: 40%;
142
+
143
+ height: 34px;
144
+
145
+ padding: 6px 12px;
146
+
147
+ font-size: 14px;
148
+
149
+ color: #555;
150
+
151
+ }
152
+
153
+
154
+
155
+ #input_plural input.form-control2 {
156
+
157
+ display: inline-block;
158
+
159
+ width: 40%;
160
+
161
+ height: 34px;
162
+
163
+ padding: 6px 12px;
164
+
165
+ font-size: 14px;
166
+
167
+ color: #555;
168
+
169
+ }
170
+
171
+
172
+
173
+ #input_plural input.pluralBtn {
174
+
175
+ width: 30px;
176
+
177
+ height: 30px;
178
+
179
+ border: 1px solid #ccc;
180
+
181
+ background: #fff;
182
+
183
+ border-radius: 5px;
184
+
185
+ padding: 0;
186
+
187
+ margin: 0;
188
+
189
+ }
190
+
97
- ・・・
191
+ -->
192
+
193
+ </style>
194
+
195
+ </head>
98
196
 
99
197
  <body>
100
198
 
@@ -120,6 +218,8 @@
120
218
 
121
219
  </body>
122
220
 
221
+ </html>
222
+
123
223
  ```
124
224
 
125
225
  処理のおおまかな説明ですが、.tagit部分のfieldName:部分に設定する名前は一意でないといけません。