質問編集履歴

3

①前提・実現したいこと②該当のソースコード③試したことを変更しました。

2016/08/17 07:38

投稿

sakura123
sakura123

スコア11

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  「safariでinput要素の文字列がオーバーしたとき、スクロールができない」バグについて改善予定日が知りたいのですが、どのように調べてよいのかわかりません。
4
4
 
5
- バグの対処法については、過去に投稿してありましたこの方→(https://teratail.com/questions/40038)のベストアンサーで知ることができましたが、改善する予定日や、対処できるjQueryやJavascript等、これに関する詳しい事などをご存知の方がいらっしゃいましたらご教授ください。
5
+ バグの対処法については、過去に投稿してありましたこの方→([https://teratail.com/questions/40038](https://teratail.com/questions/40038))のベストアンサーで知ることができましたが、改善する予定日や、対処できるjQueryやJavascript等、①②に関する詳しい事などをご存知の方がいらっしゃいましたらご教授ください。
6
6
 
7
7
  今回のようなレアなケースの情報はググっても日本語のページではめぼしい情報を見つけらず、現在私は英語を少し勉強しておりますが、海外の方が英語で書かれている情報を正確に翻訳できず困っています。(英語で書いてあるWeb情報の方が、進んでいるとどこかのHPで読みました。)
8
8
 
@@ -18,7 +18,11 @@
18
18
 
19
19
  ###該当のソースコード
20
20
 
21
- 全部のソースコードは長くなるので、該当部分に関連しないところは削除してありますが、以下が該当ソースコード(HTMLとCSS)です郵便番号に〒602-8303を入力すると住所がはみ出ます。
21
+ 全部のソースコードは長くなるので、該当部分に関連しないところは削除してあります。
22
+
23
+ 以下が該当ソースコード(HTMLとCSS)です。
24
+
25
+ 郵便番号に〒602-8303を入力すると住所がはみ出ます。
22
26
 
23
27
  ```HTML
24
28
 
@@ -66,7 +70,7 @@
66
70
 
67
71
  <dl class="clearfix">
68
72
 
69
- <dt><span class="req">必須</span>郵便番号</dt>
73
+ <dt>郵便番号</dt>
70
74
 
71
75
  <dd id=postal>
72
76
 
@@ -86,13 +90,13 @@
86
90
 
87
91
  <dl class="clearfix">
88
92
 
89
- <dt><span class="req">必須</span>住所</dt>
93
+ <dt>住所</dt>
90
94
 
91
95
  <dd>
92
96
 
93
97
  (都道府県&市区町村&町域)<br><div id="jscroll"><input name="deliver_address1" id="deliver_address1" type="text" class="p-region p-locality p-street-address" placeholder="例)東京都港区芝公園"></div>
94
98
 
95
- (以降の住所)<br><input name="deliver_address2" id="deliver_address2" type="text" class="p-extended-address" placeholder="例)1-1-1 青空マンション101号">
99
+ (以降の住所)<br><div id="jscroll"><input name="deliver_address2" id="deliver_address2" type="text" class="p-extended-address" placeholder="例)1-1-1 青空マンション101号"></div>
96
100
 
97
101
  </dd>
98
102
 
@@ -124,450 +128,70 @@
124
128
 
125
129
  ```
126
130
 
131
+ style.cssの中身
132
+
127
133
  ```CSS
128
134
 
135
+ #shop_form_deliver_new dl dd input[type="text"]{
136
+
129
- body{
137
+ max-width: 100%;
130
-
138
+
131
- font-family:"メイリオ";
139
+ font-size: 18px;
140
+
141
+ height:30px;
142
+
143
+ padding: 3px 0 3px 10px;
144
+
145
+ margin:0;
132
146
 
133
147
  }
134
148
 
149
+
150
+
135
- body,div,ol,ul,li,
151
+ div #jscroll{
136
-
137
- h1,h2,h3,h4,h5,h6,pre,form,fieldset,
152
+
138
-
139
- input,p,blockquote{
153
+ width: 210px;
140
-
154
+
141
- margin: 0;
155
+ height:30px;
142
-
156
+
143
- padding: 0;
157
+ font-size: 18px;
158
+
159
+ overflow:scroll;
160
+
161
+ -webkit-overflow-scrolling: touch;
144
162
 
145
163
  }
146
164
 
165
+ ```
166
+
167
+
168
+
169
+ ###試したこと
170
+
171
+ ①cssの変更
172
+
147
- /* shop_form_deliver start */
173
+ input要素の前にdivを設定して、そのdivのcssに以下の内容を記入してみるが、input要素をタップして、スクロールしてみようとしますが、オーバーした部分の文字列の内容が確認できずでした。
174
+
148
-
175
+ ```CSS
176
+
149
- #shop_form_deliver {
177
+ div #jscroll{
150
-
178
+
151
- max-width: 100%;
179
+ width: 210px;
180
+
181
+ height:30px;
182
+
183
+ font-size: 18px;
184
+
185
+ overflow:scroll;/*これ*/
186
+
187
+ -webkit-overflow-scrolling: touch;/*これ*/
152
188
 
153
189
  }
154
190
 
155
- #shop_form_deliver #shop_form_deliver_new{
156
-
157
- max-width: 100%;
158
-
159
- margin: 0px auto;
160
-
161
- }
162
-
163
- button,input,select,textarea,optgroup,option{
164
-
165
- margin: 0;
166
-
167
- font-family: sans-serif;
168
-
169
- font-size: 100%;
170
-
171
- vertical-align: baseline;
172
-
173
- }
174
-
175
-
176
-
177
- button,
178
-
179
- input[type="button"],
180
-
181
- input[type="submit"]{
182
-
183
- -webkit-appearance: button;
184
-
185
- }
186
-
187
-
188
-
189
- button::-moz-focus-inner,
190
-
191
- input::-moz-focus-inner{
192
-
193
- margin: 0;
194
-
195
- padding: 0;
196
-
197
- border: 0;
198
-
199
- }
200
-
201
- .clearfix::after{
202
-
203
- content : '';
204
-
205
- display : block;
206
-
207
- clear : both;
208
-
209
- height:0;
210
-
211
- }
212
-
213
-
214
-
215
- #shop_form_deliver_new dl{
216
-
217
- margin: 0 0 20px 0;
218
-
219
- max-width: 100%;
220
-
221
- }
222
-
223
-
224
-
225
- #shop_form_deliver_new dl dt{
226
-
227
- float: left;
228
-
229
- width: 250px;
230
-
231
- font-size: 18px;
232
-
233
- line-height: 25px;
234
-
235
- height: 25px;
236
-
237
- padding: 3px 0 3px 0;
238
-
239
- text-indent: -48px;
240
-
241
- margin: 0 0 0 48px;
242
-
243
- }
244
-
245
-
246
-
247
- #shop_form_deliver_new dl dt span{
248
-
249
- font-size: 14px;
250
-
251
- margin: 0 10px 0 0;
252
-
253
- display: inline;
254
-
255
- line-height: 16px;
256
-
257
- padding: 3px 10px;
258
-
259
- color: #ffffff;
260
-
261
- height: 15px;
262
-
263
- border-radius: 4px;
264
-
265
- }
266
-
267
-
268
-
269
- #shop_form_deliver_new dl dt span.req{
270
-
271
- background: #FF1515;
272
-
273
- }
274
-
275
-
276
-
277
- #shop_form_deliver_new dl dt span.any{
278
-
279
- background: #cccccc;
280
-
281
- }
282
-
283
-
284
-
285
- #shop_form_deliver_new dl dd{
286
-
287
- float: left;
288
-
289
- max-width: 100%;
290
-
291
- font-size: 18px;
292
-
293
- line-height:30px;
294
-
295
- height:auto;
296
-
297
- }
298
-
299
-
300
-
301
- #shop_form_deliver_new dl dd li{
302
-
303
- display: inline-block;
304
-
305
- margin: 0 15px 0 0;
306
-
307
- line-height: 30px;
308
-
309
- height: 30px;
310
-
311
- padding: 3px 0;
312
-
313
- }
314
-
315
-
316
-
317
- #shop_form_deliver_new dl dd p.postal_caution{
318
-
319
- font-size: 15px;
320
-
321
- line-height: 19px;
322
-
323
- color: #f50f0f;
324
-
325
- margin: 5px 0 0 0;
326
-
327
- }
328
-
329
-
330
-
331
- #shop_form_deliver_new dl dd input[type="text"],
332
-
333
- #shop_form_deliver_new dl dd input[type="tel"]{
334
-
335
- max-width: 100%;
336
-
337
- font-size: 18px;
338
-
339
- height:30px;
340
-
341
- padding: 3px 0 3px 10px;
342
-
343
- margin:0;
344
-
345
- }
346
-
347
-
348
-
349
- div #jscroll{
350
-
351
- width: 210px;
352
-
353
- height:30px;
354
-
355
- font-size: 18px;
356
-
357
- overflow:scroll;
358
-
359
- -webkit-overflow-scrolling: touch;
360
-
361
- }
362
-
363
-
364
-
365
- #shop_form_deliver_new .transmission input[type="submit"]{
366
-
367
- border: 3px double #FFFFFF;
368
-
369
- background: #F4D4D4;
370
-
371
- font-size: 15px;
372
-
373
- text-shadow: none;
374
-
375
- color: #ffffff;
376
-
377
- width: 150px;
378
-
379
- padding: 30px 0;
380
-
381
- margin: 25px 0;
382
-
383
- display: inline;
384
-
385
- opacity: 1.0;
386
-
387
- -webkit-transition: 0.5s;
388
-
389
- -moz-transition: 0.5s;
390
-
391
- -o-transition: 0.5s;
392
-
393
- -ms-transition: 0.5s;
394
-
395
- transition: 0.5s;
396
-
397
- }
398
-
399
-
400
-
401
- #shop_form_deliver_new .transmission input[type="button"]{
402
-
403
- border: 3px double #FFFFFF;
404
-
405
- background: #F4D4D4;
406
-
407
- font-size: 15px;
408
-
409
- text-shadow: none;
410
-
411
- color: #ffffff;
412
-
413
- width: 150px;
414
-
415
- padding: 30px 0;
416
-
417
- margin: 25px 0;
418
-
419
- display: inline;
420
-
421
- opacity: 1.0;
422
-
423
- -webkit-transition: 0.5s;
424
-
425
- -moz-transition: 0.5s;
426
-
427
- -o-transition: 0.5s;
428
-
429
- -ms-transition: 0.5s;
430
-
431
- transition: 0.5s;
432
-
433
- }
434
-
435
-
436
-
437
- #shop_form_deliver_new .transmission input[type="submit"]:hover{
438
-
439
- background: #FF1515;
440
-
441
- opacity:0.85;
442
-
443
- -webkit-transition: 0.5s;
444
-
445
- -moz-transition: 0.5s;
446
-
447
- -o-transition: 0.5s;
448
-
449
- -ms-transition: 0.5s;
450
-
451
- transition: 0.5s;
452
-
453
- }
454
-
455
-
456
-
457
- #shop_form_deliver_new .transmission input[type="button"]:hover{
458
-
459
- background: #FF1515;
460
-
461
- opacity:0.85;
462
-
463
- -webkit-transition: 0.5s;
464
-
465
- -moz-transition: 0.5s;
466
-
467
- -o-transition: 0.5s;
468
-
469
- -ms-transition: 0.5s;
470
-
471
- transition: 0.5s;
472
-
473
- }
474
-
475
-
476
-
477
- #shop_form_deliver_new dl dd input.inp_error[type="text"],
478
-
479
- #shop_form_deliver_new dl dd input.inp_error[type="tel"]{
480
-
481
- border: 1px solid #F88A8A;
482
-
483
- background: #F4D4D4;
484
-
485
- }
486
-
487
-
488
-
489
- #shop_form_deliver_new #postal input{
490
-
491
- max-width: 90%;
492
-
493
- font-size: 18px;
494
-
495
- height:30px;
496
-
497
- padding: 3px 0 3px 10px;
498
-
499
- margin:0;
500
-
501
- }
502
-
503
-
504
-
505
- img{
506
-
507
- vertical-align: middle;
508
-
509
- }
510
-
511
-
512
-
513
- /* shop_form_deliver end */
514
-
515
-
516
-
517
- /* Google Chrome, Safari, Opera 15+, Android, iOS */
518
-
519
- ::-webkit-input-placeholder {
520
-
521
- color: #ccc;
522
-
523
- }
524
-
525
- /* Firefox 19+ */
526
-
527
- ::-moz-placeholder {
528
-
529
- color: #ccc; opacity: 1;
530
-
531
- }
532
-
533
- /* IE 10+ */
534
-
535
- :-ms-input-placeholder {
536
-
537
- /*color: #ccc;*/
538
-
539
- color: #ccc;
540
-
541
- }
542
-
543
191
  ```
544
192
 
545
193
 
546
194
 
547
- ###試したこと
548
-
549
- ①cssの変更
550
-
551
- input要素の前にdivを設定して、そのdivのcssに以下の内容を記入してみるが、input要素をタップして、スクロールしてみようとしますが、オーバーした部分の文字列の内容が確認できずでした。
552
-
553
-
554
-
555
- div #jscroll{
556
-
557
- width: 210px;
558
-
559
- height:30px;
560
-
561
- font-size: 18px;
562
-
563
- overflow:scroll;/*これ*/
564
-
565
- -webkit-overflow-scrolling: touch;/*これ*/
566
-
567
- }
568
-
569
-
570
-
571
195
  ②以下サイトのjQueryプラグインを試してみるが、<p>,<li>要素が羅列してある時のみ有効でした。<input>要素の1つの要素に対してスクロールバーを表示させることはできませんでした。
572
196
 
573
197
 

2

CSSとHTMLを変更しました。

2016/08/17 07:38

投稿

sakura123
sakura123

スコア11

test CHANGED
File without changes
test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  ###該当のソースコード
20
20
 
21
- 全部のソースコードは長くなるので、該当部分に関連しないところは削除してありますが、以下が該当ソースコードです。郵便番号に〒602-8303を入力すると住所がはみ出ます。
21
+ 全部のソースコードは長くなるので、該当部分に関連しないところは削除してありますが、以下が該当ソースコード(HTMLとCSS)です。郵便番号に〒602-8303を入力すると住所がはみ出ます。
22
22
 
23
23
  ```HTML
24
24
 
@@ -38,7 +38,313 @@
38
38
 
39
39
  <script src="https://yubinbango.github.io/yubinbango/yubinbango.js" charset="UTF-8"></script>
40
40
 
41
+ <link href="style.css" rel="stylesheet">
42
+
43
+ </head>
44
+
41
- <style>
45
+ <body>
46
+
47
+ <div id="shop_form_deliver">
48
+
49
+ <div id="shop_form_deliver_new">
50
+
51
+ <hr>
52
+
53
+ <h3>2.配送設定</h3>
54
+
55
+ <p>下記フォームにお届先情報を入力後、OKボタンを押してください。</p>
56
+
57
+ <h4>お届け先</h4>
58
+
59
+ <hr>
60
+
61
+ <form action="#" method="post" class="h-adr">
62
+
63
+
64
+
65
+ <div id="deliverBox">
66
+
67
+ <dl class="clearfix">
68
+
69
+ <dt><span class="req">必須</span>郵便番号</dt>
70
+
71
+ <dd id=postal>
72
+
73
+ <span class="p-country-name" style="display:none;">Japan</span>
74
+
75
+ 〒<input name="deliver_postal1" id="deliver_postal1" type="text" class="p-postal-code" size="8" maxlength="3" placeholder="例)123">
76
+
77
+ ―<input name="deliver_postal2" id="deliver_postal2" type="text" class="p-postal-code" size="10" maxlength="4" placeholder="例)4567">
78
+
79
+ <p class="postal_caution">※郵便番号を入力すると、自動で住所が反映されます。</p>
80
+
81
+ </dd>
82
+
83
+ </dl>
84
+
85
+
86
+
87
+ <dl class="clearfix">
88
+
89
+ <dt><span class="req">必須</span>住所</dt>
90
+
91
+ <dd>
92
+
93
+ (都道府県&市区町村&町域)<br><div id="jscroll"><input name="deliver_address1" id="deliver_address1" type="text" class="p-region p-locality p-street-address" placeholder="例)東京都港区芝公園"></div>
94
+
95
+ (以降の住所)<br><input name="deliver_address2" id="deliver_address2" type="text" class="p-extended-address" placeholder="例)1-1-1 青空マンション101号">
96
+
97
+ </dd>
98
+
99
+ </dl>
100
+
101
+ </div> <!-- deliverBox end -->
102
+
103
+
104
+
105
+ <div class="transmission">
106
+
107
+ <input type="button" onclick="history.back()" value="戻る">
108
+
109
+ <input class="btn_submit" id="btn_submit" type="submit" value="OK(支払い設定へ)">
110
+
111
+ </div>
112
+
113
+
114
+
115
+ </form>
116
+
117
+ </div> <!--shop_form_deliver_new end-->
118
+
119
+ </div> <!--shop_form_deliver end-->
120
+
121
+ </body>
122
+
123
+ </html>
124
+
125
+ ```
126
+
127
+ ```CSS
128
+
129
+ body{
130
+
131
+ font-family:"メイリオ";
132
+
133
+ }
134
+
135
+ body,div,ol,ul,li,
136
+
137
+ h1,h2,h3,h4,h5,h6,pre,form,fieldset,
138
+
139
+ input,p,blockquote{
140
+
141
+ margin: 0;
142
+
143
+ padding: 0;
144
+
145
+ }
146
+
147
+ /* shop_form_deliver start */
148
+
149
+ #shop_form_deliver {
150
+
151
+ max-width: 100%;
152
+
153
+ }
154
+
155
+ #shop_form_deliver #shop_form_deliver_new{
156
+
157
+ max-width: 100%;
158
+
159
+ margin: 0px auto;
160
+
161
+ }
162
+
163
+ button,input,select,textarea,optgroup,option{
164
+
165
+ margin: 0;
166
+
167
+ font-family: sans-serif;
168
+
169
+ font-size: 100%;
170
+
171
+ vertical-align: baseline;
172
+
173
+ }
174
+
175
+
176
+
177
+ button,
178
+
179
+ input[type="button"],
180
+
181
+ input[type="submit"]{
182
+
183
+ -webkit-appearance: button;
184
+
185
+ }
186
+
187
+
188
+
189
+ button::-moz-focus-inner,
190
+
191
+ input::-moz-focus-inner{
192
+
193
+ margin: 0;
194
+
195
+ padding: 0;
196
+
197
+ border: 0;
198
+
199
+ }
200
+
201
+ .clearfix::after{
202
+
203
+ content : '';
204
+
205
+ display : block;
206
+
207
+ clear : both;
208
+
209
+ height:0;
210
+
211
+ }
212
+
213
+
214
+
215
+ #shop_form_deliver_new dl{
216
+
217
+ margin: 0 0 20px 0;
218
+
219
+ max-width: 100%;
220
+
221
+ }
222
+
223
+
224
+
225
+ #shop_form_deliver_new dl dt{
226
+
227
+ float: left;
228
+
229
+ width: 250px;
230
+
231
+ font-size: 18px;
232
+
233
+ line-height: 25px;
234
+
235
+ height: 25px;
236
+
237
+ padding: 3px 0 3px 0;
238
+
239
+ text-indent: -48px;
240
+
241
+ margin: 0 0 0 48px;
242
+
243
+ }
244
+
245
+
246
+
247
+ #shop_form_deliver_new dl dt span{
248
+
249
+ font-size: 14px;
250
+
251
+ margin: 0 10px 0 0;
252
+
253
+ display: inline;
254
+
255
+ line-height: 16px;
256
+
257
+ padding: 3px 10px;
258
+
259
+ color: #ffffff;
260
+
261
+ height: 15px;
262
+
263
+ border-radius: 4px;
264
+
265
+ }
266
+
267
+
268
+
269
+ #shop_form_deliver_new dl dt span.req{
270
+
271
+ background: #FF1515;
272
+
273
+ }
274
+
275
+
276
+
277
+ #shop_form_deliver_new dl dt span.any{
278
+
279
+ background: #cccccc;
280
+
281
+ }
282
+
283
+
284
+
285
+ #shop_form_deliver_new dl dd{
286
+
287
+ float: left;
288
+
289
+ max-width: 100%;
290
+
291
+ font-size: 18px;
292
+
293
+ line-height:30px;
294
+
295
+ height:auto;
296
+
297
+ }
298
+
299
+
300
+
301
+ #shop_form_deliver_new dl dd li{
302
+
303
+ display: inline-block;
304
+
305
+ margin: 0 15px 0 0;
306
+
307
+ line-height: 30px;
308
+
309
+ height: 30px;
310
+
311
+ padding: 3px 0;
312
+
313
+ }
314
+
315
+
316
+
317
+ #shop_form_deliver_new dl dd p.postal_caution{
318
+
319
+ font-size: 15px;
320
+
321
+ line-height: 19px;
322
+
323
+ color: #f50f0f;
324
+
325
+ margin: 5px 0 0 0;
326
+
327
+ }
328
+
329
+
330
+
331
+ #shop_form_deliver_new dl dd input[type="text"],
332
+
333
+ #shop_form_deliver_new dl dd input[type="tel"]{
334
+
335
+ max-width: 100%;
336
+
337
+ font-size: 18px;
338
+
339
+ height:30px;
340
+
341
+ padding: 3px 0 3px 10px;
342
+
343
+ margin:0;
344
+
345
+ }
346
+
347
+
42
348
 
43
349
  div #jscroll{
44
350
 
@@ -54,6 +360,160 @@
54
360
 
55
361
  }
56
362
 
363
+
364
+
365
+ #shop_form_deliver_new .transmission input[type="submit"]{
366
+
367
+ border: 3px double #FFFFFF;
368
+
369
+ background: #F4D4D4;
370
+
371
+ font-size: 15px;
372
+
373
+ text-shadow: none;
374
+
375
+ color: #ffffff;
376
+
377
+ width: 150px;
378
+
379
+ padding: 30px 0;
380
+
381
+ margin: 25px 0;
382
+
383
+ display: inline;
384
+
385
+ opacity: 1.0;
386
+
387
+ -webkit-transition: 0.5s;
388
+
389
+ -moz-transition: 0.5s;
390
+
391
+ -o-transition: 0.5s;
392
+
393
+ -ms-transition: 0.5s;
394
+
395
+ transition: 0.5s;
396
+
397
+ }
398
+
399
+
400
+
401
+ #shop_form_deliver_new .transmission input[type="button"]{
402
+
403
+ border: 3px double #FFFFFF;
404
+
405
+ background: #F4D4D4;
406
+
407
+ font-size: 15px;
408
+
409
+ text-shadow: none;
410
+
411
+ color: #ffffff;
412
+
413
+ width: 150px;
414
+
415
+ padding: 30px 0;
416
+
417
+ margin: 25px 0;
418
+
419
+ display: inline;
420
+
421
+ opacity: 1.0;
422
+
423
+ -webkit-transition: 0.5s;
424
+
425
+ -moz-transition: 0.5s;
426
+
427
+ -o-transition: 0.5s;
428
+
429
+ -ms-transition: 0.5s;
430
+
431
+ transition: 0.5s;
432
+
433
+ }
434
+
435
+
436
+
437
+ #shop_form_deliver_new .transmission input[type="submit"]:hover{
438
+
439
+ background: #FF1515;
440
+
441
+ opacity:0.85;
442
+
443
+ -webkit-transition: 0.5s;
444
+
445
+ -moz-transition: 0.5s;
446
+
447
+ -o-transition: 0.5s;
448
+
449
+ -ms-transition: 0.5s;
450
+
451
+ transition: 0.5s;
452
+
453
+ }
454
+
455
+
456
+
457
+ #shop_form_deliver_new .transmission input[type="button"]:hover{
458
+
459
+ background: #FF1515;
460
+
461
+ opacity:0.85;
462
+
463
+ -webkit-transition: 0.5s;
464
+
465
+ -moz-transition: 0.5s;
466
+
467
+ -o-transition: 0.5s;
468
+
469
+ -ms-transition: 0.5s;
470
+
471
+ transition: 0.5s;
472
+
473
+ }
474
+
475
+
476
+
477
+ #shop_form_deliver_new dl dd input.inp_error[type="text"],
478
+
479
+ #shop_form_deliver_new dl dd input.inp_error[type="tel"]{
480
+
481
+ border: 1px solid #F88A8A;
482
+
483
+ background: #F4D4D4;
484
+
485
+ }
486
+
487
+
488
+
489
+ #shop_form_deliver_new #postal input{
490
+
491
+ max-width: 90%;
492
+
493
+ font-size: 18px;
494
+
495
+ height:30px;
496
+
497
+ padding: 3px 0 3px 10px;
498
+
499
+ margin:0;
500
+
501
+ }
502
+
503
+
504
+
505
+ img{
506
+
507
+ vertical-align: middle;
508
+
509
+ }
510
+
511
+
512
+
513
+ /* shop_form_deliver end */
514
+
515
+
516
+
57
517
  /* Google Chrome, Safari, Opera 15+, Android, iOS */
58
518
 
59
519
  ::-webkit-input-placeholder {
@@ -74,82 +534,12 @@
74
534
 
75
535
  :-ms-input-placeholder {
76
536
 
537
+ /*color: #ccc;*/
538
+
77
539
  color: #ccc;
78
540
 
79
541
  }
80
542
 
81
- </style>
82
-
83
- </head>
84
-
85
- <body>
86
-
87
- <h3>2.配送設定</h3>
88
-
89
- <p>下記フォームにお届先情報を入力後、OKボタンを押してください。</p>
90
-
91
- <h4>お届け先</h4>
92
-
93
- <hr>
94
-
95
- <form action="#" method="post" class="h-adr">
96
-
97
-
98
-
99
- <div id="deliverBox">
100
-
101
- <dl class="clearfix">
102
-
103
- <dt>郵便番号</dt>
104
-
105
- <dd id=postal>
106
-
107
- <span class="p-country-name" style="display:none;">Japan</span>
108
-
109
- 〒<input name="deliver_postal1" id="deliver_postal1" type="text" class="p-postal-code" size="8" maxlength="3" placeholder="例)123">
110
-
111
- ―<input name="deliver_postal2" id="deliver_postal2" type="text" class="p-postal-code" size="10" maxlength="4" placeholder="例)4567">
112
-
113
- <p class="postal_caution">※郵便番号を入力すると、自動で住所が反映されます。</p>
114
-
115
- </dd>
116
-
117
- </dl>
118
-
119
-
120
-
121
- <dl class="clearfix">
122
-
123
- <dt>住所</dt>
124
-
125
- <dd>
126
-
127
- (都道府県&市区町村&町域)<br><div id="jscroll"><input name="deliver_address1" id="deliver_address1" type="text" class="p-region p-locality p-street-address" placeholder="例)東京都港区芝公園"></div>
128
-
129
- (以降の住所)<br><div id="jscroll">
130
-
131
- <input name="deliver_address2" id="deliver_address2" type="text" class="p-extended-address" placeholder="例)1-1-1 青空マンション101号"></div>
132
-
133
- </dd>
134
-
135
- </dl>
136
-
137
- </div> <!-- deliverBox end -->
138
-
139
- <div class="transmission">
140
-
141
- <input type="button" onclick="history.back()" value="戻る">
142
-
143
- <input class="btn_submit" id="btn_submit" type="submit" value="OK(支払い設定へ)">
144
-
145
- </div>
146
-
147
- </form>
148
-
149
- </body>
150
-
151
- </html>
152
-
153
543
  ```
154
544
 
155
545
 

1

該当ソースコードを追記しました。見て頂きありがとうございます。

2016/08/17 00:40

投稿

sakura123
sakura123

スコア11

test CHANGED
File without changes
test CHANGED
@@ -13,6 +13,144 @@
13
13
  ###発生している問題
14
14
 
15
15
  現在、スマホ対応のページを作成しているのですが、iPhone 5Cでinput要素の文字列がオーバーしたとき(iphoneを縦に持って、住所入力欄で住所がはみ出る)、スクロールが動作せず、オーバーした部分の文字列の内容が確認できないことがわかったのですが、これがバグであった。
16
+
17
+
18
+
19
+ ###該当のソースコード
20
+
21
+ 全部のソースコードは長くなるので、該当部分に関連しないところは削除してありますが、以下が該当ソースコードです。郵便番号に〒602-8303を入力すると住所がはみ出ます。
22
+
23
+ ```HTML
24
+
25
+ <!DOCTYPE html>
26
+
27
+ <html>
28
+
29
+ <head>
30
+
31
+ <meta charset="utf-8">
32
+
33
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
34
+
35
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, user-scalable=no">
36
+
37
+ <title>配送設定</title>
38
+
39
+ <script src="https://yubinbango.github.io/yubinbango/yubinbango.js" charset="UTF-8"></script>
40
+
41
+ <style>
42
+
43
+ div #jscroll{
44
+
45
+ width: 210px;
46
+
47
+ height:30px;
48
+
49
+ font-size: 18px;
50
+
51
+ overflow:scroll;
52
+
53
+ -webkit-overflow-scrolling: touch;
54
+
55
+ }
56
+
57
+ /* Google Chrome, Safari, Opera 15+, Android, iOS */
58
+
59
+ ::-webkit-input-placeholder {
60
+
61
+ color: #ccc;
62
+
63
+ }
64
+
65
+ /* Firefox 19+ */
66
+
67
+ ::-moz-placeholder {
68
+
69
+ color: #ccc; opacity: 1;
70
+
71
+ }
72
+
73
+ /* IE 10+ */
74
+
75
+ :-ms-input-placeholder {
76
+
77
+ color: #ccc;
78
+
79
+ }
80
+
81
+ </style>
82
+
83
+ </head>
84
+
85
+ <body>
86
+
87
+ <h3>2.配送設定</h3>
88
+
89
+ <p>下記フォームにお届先情報を入力後、OKボタンを押してください。</p>
90
+
91
+ <h4>お届け先</h4>
92
+
93
+ <hr>
94
+
95
+ <form action="#" method="post" class="h-adr">
96
+
97
+
98
+
99
+ <div id="deliverBox">
100
+
101
+ <dl class="clearfix">
102
+
103
+ <dt>郵便番号</dt>
104
+
105
+ <dd id=postal>
106
+
107
+ <span class="p-country-name" style="display:none;">Japan</span>
108
+
109
+ 〒<input name="deliver_postal1" id="deliver_postal1" type="text" class="p-postal-code" size="8" maxlength="3" placeholder="例)123">
110
+
111
+ ―<input name="deliver_postal2" id="deliver_postal2" type="text" class="p-postal-code" size="10" maxlength="4" placeholder="例)4567">
112
+
113
+ <p class="postal_caution">※郵便番号を入力すると、自動で住所が反映されます。</p>
114
+
115
+ </dd>
116
+
117
+ </dl>
118
+
119
+
120
+
121
+ <dl class="clearfix">
122
+
123
+ <dt>住所</dt>
124
+
125
+ <dd>
126
+
127
+ (都道府県&市区町村&町域)<br><div id="jscroll"><input name="deliver_address1" id="deliver_address1" type="text" class="p-region p-locality p-street-address" placeholder="例)東京都港区芝公園"></div>
128
+
129
+ (以降の住所)<br><div id="jscroll">
130
+
131
+ <input name="deliver_address2" id="deliver_address2" type="text" class="p-extended-address" placeholder="例)1-1-1 青空マンション101号"></div>
132
+
133
+ </dd>
134
+
135
+ </dl>
136
+
137
+ </div> <!-- deliverBox end -->
138
+
139
+ <div class="transmission">
140
+
141
+ <input type="button" onclick="history.back()" value="戻る">
142
+
143
+ <input class="btn_submit" id="btn_submit" type="submit" value="OK(支払い設定へ)">
144
+
145
+ </div>
146
+
147
+ </form>
148
+
149
+ </body>
150
+
151
+ </html>
152
+
153
+ ```
16
154
 
17
155
 
18
156