質問編集履歴
3
①前提・実現したいこと②該当のソースコード③試したことを変更しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
###前提・実現したいこと
|
2
2
|
「safariでinput要素の文字列がオーバーしたとき、スクロールができない」バグについて改善予定日が知りたいのですが、どのように調べてよいのかわかりません。
|
3
|
-
バグの対処法については、過去に投稿してありましたこの方→(https://teratail.com/questions/40038)のベストアンサーで知ることができましたが、改善する予定日や、対処できるjQueryやJavascript等、
|
3
|
+
バグの対処法については、過去に投稿してありましたこの方→([https://teratail.com/questions/40038](https://teratail.com/questions/40038))のベストアンサーで知ることができましたが、①改善する予定日や、②対処できるjQueryやJavascript等、①②に関する詳しい事などをご存知の方がいらっしゃいましたらご教授ください。
|
4
4
|
今回のようなレアなケースの情報はググっても日本語のページではめぼしい情報を見つけらず、現在私は英語を少し勉強しておりますが、海外の方が英語で書かれている情報を正確に翻訳できず困っています。(英語で書いてあるWeb情報の方が、進んでいるとどこかのHPで読みました。)
|
5
5
|
改善の進捗情報などの情報がここに書いてある。もしくは、最新の対処策はここ。等の英語サイトでもかまいせんので、情報がわかる方がいらっしゃいましたら教えて下さい。よろしくお願いします。
|
6
6
|
|
@@ -8,7 +8,9 @@
|
|
8
8
|
現在、スマホ対応のページを作成しているのですが、iPhone 5Cでinput要素の文字列がオーバーしたとき(iphoneを縦に持って、住所入力欄で住所がはみ出る)、スクロールが動作せず、オーバーした部分の文字列の内容が確認できないことがわかったのですが、これがバグであった。
|
9
9
|
|
10
10
|
###該当のソースコード
|
11
|
-
全部のソースコードは長くなるので、該当部分に関連しないところは削除してあります
|
11
|
+
全部のソースコードは長くなるので、該当部分に関連しないところは削除してあります。
|
12
|
+
以下が該当ソースコード(HTMLとCSS)です。
|
13
|
+
郵便番号に〒602-8303を入力すると住所がはみ出ます。
|
12
14
|
```HTML
|
13
15
|
<!DOCTYPE html>
|
14
16
|
<html>
|
@@ -32,7 +34,7 @@
|
|
32
34
|
|
33
35
|
<div id="deliverBox">
|
34
36
|
<dl class="clearfix">
|
35
|
-
<dt>
|
37
|
+
<dt>郵便番号</dt>
|
36
38
|
<dd id=postal>
|
37
39
|
<span class="p-country-name" style="display:none;">Japan</span>
|
38
40
|
〒<input name="deliver_postal1" id="deliver_postal1" type="text" class="p-postal-code" size="8" maxlength="3" placeholder="例)123">
|
@@ -42,10 +44,10 @@
|
|
42
44
|
</dl>
|
43
45
|
|
44
46
|
<dl class="clearfix">
|
45
|
-
<dt>
|
47
|
+
<dt>住所</dt>
|
46
48
|
<dd>
|
47
49
|
(都道府県&市区町村&町域)<br><div id="jscroll"><input name="deliver_address1" id="deliver_address1" type="text" class="p-region p-locality p-street-address" placeholder="例)東京都港区芝公園"></div>
|
48
|
-
(以降の住所)<br><input name="deliver_address2" id="deliver_address2" type="text" class="p-extended-address" placeholder="例)1-1-1 青空マンション101号">
|
50
|
+
(以降の住所)<br><div id="jscroll"><input name="deliver_address2" id="deliver_address2" type="text" class="p-extended-address" placeholder="例)1-1-1 青空マンション101号"></div>
|
49
51
|
</dd>
|
50
52
|
</dl>
|
51
53
|
</div> <!-- deliverBox end -->
|
@@ -61,112 +63,11 @@
|
|
61
63
|
</body>
|
62
64
|
</html>
|
63
65
|
```
|
66
|
+
style.cssの中身
|
64
67
|
```CSS
|
65
|
-
body{
|
66
|
-
font-family:"メイリオ";
|
67
|
-
}
|
68
|
-
body,div,ol,ul,li,
|
69
|
-
h1,h2,h3,h4,h5,h6,pre,form,fieldset,
|
70
|
-
input,p,blockquote{
|
71
|
-
margin: 0;
|
72
|
-
padding: 0;
|
73
|
-
}
|
74
|
-
|
68
|
+
#shop_form_deliver_new dl dd input[type="text"]{
|
75
|
-
#shop_form_deliver {
|
76
69
|
max-width: 100%;
|
77
|
-
}
|
78
|
-
#shop_form_deliver #shop_form_deliver_new{
|
79
|
-
max-width: 100%;
|
80
|
-
margin: 0px auto;
|
81
|
-
}
|
82
|
-
button,input,select,textarea,optgroup,option{
|
83
|
-
margin: 0;
|
84
|
-
font-family: sans-serif;
|
85
|
-
font-size: 100%;
|
86
|
-
vertical-align: baseline;
|
87
|
-
}
|
88
|
-
|
89
|
-
button,
|
90
|
-
input[type="button"],
|
91
|
-
input[type="submit"]{
|
92
|
-
-webkit-appearance: button;
|
93
|
-
}
|
94
|
-
|
95
|
-
button::-moz-focus-inner,
|
96
|
-
input::-moz-focus-inner{
|
97
|
-
margin: 0;
|
98
|
-
padding: 0;
|
99
|
-
border: 0;
|
100
|
-
}
|
101
|
-
.clearfix::after{
|
102
|
-
content : '';
|
103
|
-
display : block;
|
104
|
-
clear : both;
|
105
|
-
height:0;
|
106
|
-
}
|
107
|
-
|
108
|
-
#shop_form_deliver_new dl{
|
109
|
-
margin: 0 0 20px 0;
|
110
|
-
max-width: 100%;
|
111
|
-
}
|
112
|
-
|
113
|
-
#shop_form_deliver_new dl dt{
|
114
|
-
float: left;
|
115
|
-
width: 250px;
|
116
70
|
font-size: 18px;
|
117
|
-
line-height: 25px;
|
118
|
-
height: 25px;
|
119
|
-
padding: 3px 0 3px 0;
|
120
|
-
text-indent: -48px;
|
121
|
-
margin: 0 0 0 48px;
|
122
|
-
}
|
123
|
-
|
124
|
-
#shop_form_deliver_new dl dt span{
|
125
|
-
font-size: 14px;
|
126
|
-
margin: 0 10px 0 0;
|
127
|
-
display: inline;
|
128
|
-
line-height: 16px;
|
129
|
-
padding: 3px 10px;
|
130
|
-
color: #ffffff;
|
131
|
-
height: 15px;
|
132
|
-
border-radius: 4px;
|
133
|
-
}
|
134
|
-
|
135
|
-
#shop_form_deliver_new dl dt span.req{
|
136
|
-
background: #FF1515;
|
137
|
-
}
|
138
|
-
|
139
|
-
#shop_form_deliver_new dl dt span.any{
|
140
|
-
background: #cccccc;
|
141
|
-
}
|
142
|
-
|
143
|
-
#shop_form_deliver_new dl dd{
|
144
|
-
float: left;
|
145
|
-
max-width: 100%;
|
146
|
-
font-size: 18px;
|
147
|
-
line-height:30px;
|
148
|
-
height:auto;
|
149
|
-
}
|
150
|
-
|
151
|
-
#shop_form_deliver_new dl dd li{
|
152
|
-
display: inline-block;
|
153
|
-
margin: 0 15px 0 0;
|
154
|
-
line-height: 30px;
|
155
|
-
height: 30px;
|
156
|
-
padding: 3px 0;
|
157
|
-
}
|
158
|
-
|
159
|
-
#shop_form_deliver_new dl dd p.postal_caution{
|
160
|
-
font-size: 15px;
|
161
|
-
line-height: 19px;
|
162
|
-
color: #f50f0f;
|
163
|
-
margin: 5px 0 0 0;
|
164
|
-
}
|
165
|
-
|
166
|
-
#shop_form_deliver_new dl dd input[type="text"],
|
167
|
-
#shop_form_deliver_new dl dd input[type="tel"]{
|
168
|
-
max-width: 100%;
|
169
|
-
font-size: 18px;
|
170
71
|
height:30px;
|
171
72
|
padding: 3px 0 3px 10px;
|
172
73
|
margin:0;
|
@@ -179,102 +80,12 @@
|
|
179
80
|
overflow:scroll;
|
180
81
|
-webkit-overflow-scrolling: touch;
|
181
82
|
}
|
182
|
-
|
183
|
-
#shop_form_deliver_new .transmission input[type="submit"]{
|
184
|
-
border: 3px double #FFFFFF;
|
185
|
-
background: #F4D4D4;
|
186
|
-
font-size: 15px;
|
187
|
-
text-shadow: none;
|
188
|
-
color: #ffffff;
|
189
|
-
width: 150px;
|
190
|
-
padding: 30px 0;
|
191
|
-
margin: 25px 0;
|
192
|
-
display: inline;
|
193
|
-
opacity: 1.0;
|
194
|
-
-webkit-transition: 0.5s;
|
195
|
-
-moz-transition: 0.5s;
|
196
|
-
-o-transition: 0.5s;
|
197
|
-
-ms-transition: 0.5s;
|
198
|
-
transition: 0.5s;
|
199
|
-
}
|
200
|
-
|
201
|
-
#shop_form_deliver_new .transmission input[type="button"]{
|
202
|
-
border: 3px double #FFFFFF;
|
203
|
-
background: #F4D4D4;
|
204
|
-
font-size: 15px;
|
205
|
-
text-shadow: none;
|
206
|
-
color: #ffffff;
|
207
|
-
width: 150px;
|
208
|
-
padding: 30px 0;
|
209
|
-
margin: 25px 0;
|
210
|
-
display: inline;
|
211
|
-
opacity: 1.0;
|
212
|
-
-webkit-transition: 0.5s;
|
213
|
-
-moz-transition: 0.5s;
|
214
|
-
-o-transition: 0.5s;
|
215
|
-
-ms-transition: 0.5s;
|
216
|
-
transition: 0.5s;
|
217
|
-
}
|
218
|
-
|
219
|
-
#shop_form_deliver_new .transmission input[type="submit"]:hover{
|
220
|
-
background: #FF1515;
|
221
|
-
opacity:0.85;
|
222
|
-
-webkit-transition: 0.5s;
|
223
|
-
-moz-transition: 0.5s;
|
224
|
-
-o-transition: 0.5s;
|
225
|
-
-ms-transition: 0.5s;
|
226
|
-
transition: 0.5s;
|
227
|
-
}
|
228
|
-
|
229
|
-
#shop_form_deliver_new .transmission input[type="button"]:hover{
|
230
|
-
background: #FF1515;
|
231
|
-
opacity:0.85;
|
232
|
-
-webkit-transition: 0.5s;
|
233
|
-
-moz-transition: 0.5s;
|
234
|
-
-o-transition: 0.5s;
|
235
|
-
-ms-transition: 0.5s;
|
236
|
-
transition: 0.5s;
|
237
|
-
}
|
238
|
-
|
239
|
-
#shop_form_deliver_new dl dd input.inp_error[type="text"],
|
240
|
-
#shop_form_deliver_new dl dd input.inp_error[type="tel"]{
|
241
|
-
border: 1px solid #F88A8A;
|
242
|
-
background: #F4D4D4;
|
243
|
-
}
|
244
|
-
|
245
|
-
#shop_form_deliver_new #postal input{
|
246
|
-
max-width: 90%;
|
247
|
-
font-size: 18px;
|
248
|
-
height:30px;
|
249
|
-
padding: 3px 0 3px 10px;
|
250
|
-
margin:0;
|
251
|
-
}
|
252
|
-
|
253
|
-
img{
|
254
|
-
vertical-align: middle;
|
255
|
-
}
|
256
|
-
|
257
|
-
/* shop_form_deliver end */
|
258
|
-
|
259
|
-
/* Google Chrome, Safari, Opera 15+, Android, iOS */
|
260
|
-
::-webkit-input-placeholder {
|
261
|
-
color: #ccc;
|
262
|
-
}
|
263
|
-
/* Firefox 19+ */
|
264
|
-
::-moz-placeholder {
|
265
|
-
color: #ccc; opacity: 1;
|
266
|
-
}
|
267
|
-
/* IE 10+ */
|
268
|
-
:-ms-input-placeholder {
|
269
|
-
/*color: #ccc;*/
|
270
|
-
color: #ccc;
|
271
|
-
}
|
272
83
|
```
|
273
84
|
|
274
85
|
###試したこと
|
275
86
|
①cssの変更
|
276
87
|
input要素の前にdivを設定して、そのdivのcssに以下の内容を記入してみるが、input要素をタップして、スクロールしてみようとしますが、オーバーした部分の文字列の内容が確認できずでした。
|
277
|
-
|
88
|
+
```CSS
|
278
89
|
div #jscroll{
|
279
90
|
width: 210px;
|
280
91
|
height:30px;
|
@@ -282,6 +93,7 @@
|
|
282
93
|
overflow:scroll;/*これ*/
|
283
94
|
-webkit-overflow-scrolling: touch;/*これ*/
|
284
95
|
}
|
96
|
+
```
|
285
97
|
|
286
98
|
②以下サイトのjQueryプラグインを試してみるが、<p>,<li>要素が羅列してある時のみ有効でした。<input>要素の1つの要素に対してスクロールバーを表示させることはできませんでした。
|
287
99
|
|
2
CSSとHTMLを変更しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
現在、スマホ対応のページを作成しているのですが、iPhone 5Cでinput要素の文字列がオーバーしたとき(iphoneを縦に持って、住所入力欄で住所がはみ出る)、スクロールが動作せず、オーバーした部分の文字列の内容が確認できないことがわかったのですが、これがバグであった。
|
9
9
|
|
10
10
|
###該当のソースコード
|
11
|
-
全部のソースコードは長くなるので、該当部分に関連しないところは削除してありますが、以下が該当ソースコードです。郵便番号に〒602-8303を入力すると住所がはみ出ます。
|
11
|
+
全部のソースコードは長くなるので、該当部分に関連しないところは削除してありますが、以下が該当ソースコード(HTMLとCSS)です。郵便番号に〒602-8303を入力すると住所がはみ出ます。
|
12
12
|
```HTML
|
13
13
|
<!DOCTYPE html>
|
14
14
|
<html>
|
@@ -18,30 +18,13 @@
|
|
18
18
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, user-scalable=no">
|
19
19
|
<title>配送設定</title>
|
20
20
|
<script src="https://yubinbango.github.io/yubinbango/yubinbango.js" charset="UTF-8"></script>
|
21
|
-
<style>
|
22
|
-
div #jscroll{
|
23
|
-
width: 210px;
|
24
|
-
height:30px;
|
25
|
-
font-size: 18px;
|
26
|
-
overflow:scroll;
|
27
|
-
-webkit-overflow-scrolling: touch;
|
28
|
-
}
|
29
|
-
|
21
|
+
<link href="style.css" rel="stylesheet">
|
30
|
-
::-webkit-input-placeholder {
|
31
|
-
color: #ccc;
|
32
|
-
}
|
33
|
-
/* Firefox 19+ */
|
34
|
-
::-moz-placeholder {
|
35
|
-
color: #ccc; opacity: 1;
|
36
|
-
}
|
37
|
-
/* IE 10+ */
|
38
|
-
:-ms-input-placeholder {
|
39
|
-
color: #ccc;
|
40
|
-
}
|
41
|
-
</style>
|
42
22
|
</head>
|
43
23
|
<body>
|
24
|
+
<div id="shop_form_deliver">
|
25
|
+
<div id="shop_form_deliver_new">
|
26
|
+
<hr>
|
44
|
-
|
27
|
+
<h3>2.配送設定</h3>
|
45
28
|
<p>下記フォームにお届先情報を入力後、OKボタンを押してください。</p>
|
46
29
|
<h4>お届け先</h4>
|
47
30
|
<hr>
|
@@ -49,7 +32,7 @@
|
|
49
32
|
|
50
33
|
<div id="deliverBox">
|
51
34
|
<dl class="clearfix">
|
52
|
-
<dt>郵便番号</dt>
|
35
|
+
<dt><span class="req">必須</span>郵便番号</dt>
|
53
36
|
<dd id=postal>
|
54
37
|
<span class="p-country-name" style="display:none;">Japan</span>
|
55
38
|
〒<input name="deliver_postal1" id="deliver_postal1" type="text" class="p-postal-code" size="8" maxlength="3" placeholder="例)123">
|
@@ -59,23 +42,235 @@
|
|
59
42
|
</dl>
|
60
43
|
|
61
44
|
<dl class="clearfix">
|
62
|
-
<dt>住所</dt>
|
45
|
+
<dt><span class="req">必須</span>住所</dt>
|
63
46
|
<dd>
|
64
47
|
(都道府県&市区町村&町域)<br><div id="jscroll"><input name="deliver_address1" id="deliver_address1" type="text" class="p-region p-locality p-street-address" placeholder="例)東京都港区芝公園"></div>
|
65
|
-
(以降の住所)<br><div id="jscroll">
|
66
|
-
<input name="deliver_address2" id="deliver_address2" type="text" class="p-extended-address" placeholder="例)1-1-1 青空マンション101号">
|
48
|
+
(以降の住所)<br><input name="deliver_address2" id="deliver_address2" type="text" class="p-extended-address" placeholder="例)1-1-1 青空マンション101号">
|
67
49
|
</dd>
|
68
50
|
</dl>
|
69
51
|
</div> <!-- deliverBox end -->
|
52
|
+
|
70
53
|
<div class="transmission">
|
71
54
|
<input type="button" onclick="history.back()" value="戻る">
|
72
55
|
<input class="btn_submit" id="btn_submit" type="submit" value="OK(支払い設定へ)">
|
73
56
|
</div>
|
57
|
+
|
74
58
|
</form>
|
59
|
+
</div> <!--shop_form_deliver_new end-->
|
60
|
+
</div> <!--shop_form_deliver end-->
|
75
61
|
</body>
|
76
62
|
</html>
|
77
63
|
```
|
64
|
+
```CSS
|
65
|
+
body{
|
66
|
+
font-family:"メイリオ";
|
67
|
+
}
|
68
|
+
body,div,ol,ul,li,
|
69
|
+
h1,h2,h3,h4,h5,h6,pre,form,fieldset,
|
70
|
+
input,p,blockquote{
|
71
|
+
margin: 0;
|
72
|
+
padding: 0;
|
73
|
+
}
|
74
|
+
/* shop_form_deliver start */
|
75
|
+
#shop_form_deliver {
|
76
|
+
max-width: 100%;
|
77
|
+
}
|
78
|
+
#shop_form_deliver #shop_form_deliver_new{
|
79
|
+
max-width: 100%;
|
80
|
+
margin: 0px auto;
|
81
|
+
}
|
82
|
+
button,input,select,textarea,optgroup,option{
|
83
|
+
margin: 0;
|
84
|
+
font-family: sans-serif;
|
85
|
+
font-size: 100%;
|
86
|
+
vertical-align: baseline;
|
87
|
+
}
|
78
88
|
|
89
|
+
button,
|
90
|
+
input[type="button"],
|
91
|
+
input[type="submit"]{
|
92
|
+
-webkit-appearance: button;
|
93
|
+
}
|
94
|
+
|
95
|
+
button::-moz-focus-inner,
|
96
|
+
input::-moz-focus-inner{
|
97
|
+
margin: 0;
|
98
|
+
padding: 0;
|
99
|
+
border: 0;
|
100
|
+
}
|
101
|
+
.clearfix::after{
|
102
|
+
content : '';
|
103
|
+
display : block;
|
104
|
+
clear : both;
|
105
|
+
height:0;
|
106
|
+
}
|
107
|
+
|
108
|
+
#shop_form_deliver_new dl{
|
109
|
+
margin: 0 0 20px 0;
|
110
|
+
max-width: 100%;
|
111
|
+
}
|
112
|
+
|
113
|
+
#shop_form_deliver_new dl dt{
|
114
|
+
float: left;
|
115
|
+
width: 250px;
|
116
|
+
font-size: 18px;
|
117
|
+
line-height: 25px;
|
118
|
+
height: 25px;
|
119
|
+
padding: 3px 0 3px 0;
|
120
|
+
text-indent: -48px;
|
121
|
+
margin: 0 0 0 48px;
|
122
|
+
}
|
123
|
+
|
124
|
+
#shop_form_deliver_new dl dt span{
|
125
|
+
font-size: 14px;
|
126
|
+
margin: 0 10px 0 0;
|
127
|
+
display: inline;
|
128
|
+
line-height: 16px;
|
129
|
+
padding: 3px 10px;
|
130
|
+
color: #ffffff;
|
131
|
+
height: 15px;
|
132
|
+
border-radius: 4px;
|
133
|
+
}
|
134
|
+
|
135
|
+
#shop_form_deliver_new dl dt span.req{
|
136
|
+
background: #FF1515;
|
137
|
+
}
|
138
|
+
|
139
|
+
#shop_form_deliver_new dl dt span.any{
|
140
|
+
background: #cccccc;
|
141
|
+
}
|
142
|
+
|
143
|
+
#shop_form_deliver_new dl dd{
|
144
|
+
float: left;
|
145
|
+
max-width: 100%;
|
146
|
+
font-size: 18px;
|
147
|
+
line-height:30px;
|
148
|
+
height:auto;
|
149
|
+
}
|
150
|
+
|
151
|
+
#shop_form_deliver_new dl dd li{
|
152
|
+
display: inline-block;
|
153
|
+
margin: 0 15px 0 0;
|
154
|
+
line-height: 30px;
|
155
|
+
height: 30px;
|
156
|
+
padding: 3px 0;
|
157
|
+
}
|
158
|
+
|
159
|
+
#shop_form_deliver_new dl dd p.postal_caution{
|
160
|
+
font-size: 15px;
|
161
|
+
line-height: 19px;
|
162
|
+
color: #f50f0f;
|
163
|
+
margin: 5px 0 0 0;
|
164
|
+
}
|
165
|
+
|
166
|
+
#shop_form_deliver_new dl dd input[type="text"],
|
167
|
+
#shop_form_deliver_new dl dd input[type="tel"]{
|
168
|
+
max-width: 100%;
|
169
|
+
font-size: 18px;
|
170
|
+
height:30px;
|
171
|
+
padding: 3px 0 3px 10px;
|
172
|
+
margin:0;
|
173
|
+
}
|
174
|
+
|
175
|
+
div #jscroll{
|
176
|
+
width: 210px;
|
177
|
+
height:30px;
|
178
|
+
font-size: 18px;
|
179
|
+
overflow:scroll;
|
180
|
+
-webkit-overflow-scrolling: touch;
|
181
|
+
}
|
182
|
+
|
183
|
+
#shop_form_deliver_new .transmission input[type="submit"]{
|
184
|
+
border: 3px double #FFFFFF;
|
185
|
+
background: #F4D4D4;
|
186
|
+
font-size: 15px;
|
187
|
+
text-shadow: none;
|
188
|
+
color: #ffffff;
|
189
|
+
width: 150px;
|
190
|
+
padding: 30px 0;
|
191
|
+
margin: 25px 0;
|
192
|
+
display: inline;
|
193
|
+
opacity: 1.0;
|
194
|
+
-webkit-transition: 0.5s;
|
195
|
+
-moz-transition: 0.5s;
|
196
|
+
-o-transition: 0.5s;
|
197
|
+
-ms-transition: 0.5s;
|
198
|
+
transition: 0.5s;
|
199
|
+
}
|
200
|
+
|
201
|
+
#shop_form_deliver_new .transmission input[type="button"]{
|
202
|
+
border: 3px double #FFFFFF;
|
203
|
+
background: #F4D4D4;
|
204
|
+
font-size: 15px;
|
205
|
+
text-shadow: none;
|
206
|
+
color: #ffffff;
|
207
|
+
width: 150px;
|
208
|
+
padding: 30px 0;
|
209
|
+
margin: 25px 0;
|
210
|
+
display: inline;
|
211
|
+
opacity: 1.0;
|
212
|
+
-webkit-transition: 0.5s;
|
213
|
+
-moz-transition: 0.5s;
|
214
|
+
-o-transition: 0.5s;
|
215
|
+
-ms-transition: 0.5s;
|
216
|
+
transition: 0.5s;
|
217
|
+
}
|
218
|
+
|
219
|
+
#shop_form_deliver_new .transmission input[type="submit"]:hover{
|
220
|
+
background: #FF1515;
|
221
|
+
opacity:0.85;
|
222
|
+
-webkit-transition: 0.5s;
|
223
|
+
-moz-transition: 0.5s;
|
224
|
+
-o-transition: 0.5s;
|
225
|
+
-ms-transition: 0.5s;
|
226
|
+
transition: 0.5s;
|
227
|
+
}
|
228
|
+
|
229
|
+
#shop_form_deliver_new .transmission input[type="button"]:hover{
|
230
|
+
background: #FF1515;
|
231
|
+
opacity:0.85;
|
232
|
+
-webkit-transition: 0.5s;
|
233
|
+
-moz-transition: 0.5s;
|
234
|
+
-o-transition: 0.5s;
|
235
|
+
-ms-transition: 0.5s;
|
236
|
+
transition: 0.5s;
|
237
|
+
}
|
238
|
+
|
239
|
+
#shop_form_deliver_new dl dd input.inp_error[type="text"],
|
240
|
+
#shop_form_deliver_new dl dd input.inp_error[type="tel"]{
|
241
|
+
border: 1px solid #F88A8A;
|
242
|
+
background: #F4D4D4;
|
243
|
+
}
|
244
|
+
|
245
|
+
#shop_form_deliver_new #postal input{
|
246
|
+
max-width: 90%;
|
247
|
+
font-size: 18px;
|
248
|
+
height:30px;
|
249
|
+
padding: 3px 0 3px 10px;
|
250
|
+
margin:0;
|
251
|
+
}
|
252
|
+
|
253
|
+
img{
|
254
|
+
vertical-align: middle;
|
255
|
+
}
|
256
|
+
|
257
|
+
/* shop_form_deliver end */
|
258
|
+
|
259
|
+
/* Google Chrome, Safari, Opera 15+, Android, iOS */
|
260
|
+
::-webkit-input-placeholder {
|
261
|
+
color: #ccc;
|
262
|
+
}
|
263
|
+
/* Firefox 19+ */
|
264
|
+
::-moz-placeholder {
|
265
|
+
color: #ccc; opacity: 1;
|
266
|
+
}
|
267
|
+
/* IE 10+ */
|
268
|
+
:-ms-input-placeholder {
|
269
|
+
/*color: #ccc;*/
|
270
|
+
color: #ccc;
|
271
|
+
}
|
272
|
+
```
|
273
|
+
|
79
274
|
###試したこと
|
80
275
|
①cssの変更
|
81
276
|
input要素の前にdivを設定して、そのdivのcssに以下の内容を記入してみるが、input要素をタップして、スクロールしてみようとしますが、オーバーした部分の文字列の内容が確認できずでした。
|
1
該当ソースコードを追記しました。見て頂きありがとうございます。
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,6 +7,75 @@
|
|
7
7
|
###発生している問題
|
8
8
|
現在、スマホ対応のページを作成しているのですが、iPhone 5Cでinput要素の文字列がオーバーしたとき(iphoneを縦に持って、住所入力欄で住所がはみ出る)、スクロールが動作せず、オーバーした部分の文字列の内容が確認できないことがわかったのですが、これがバグであった。
|
9
9
|
|
10
|
+
###該当のソースコード
|
11
|
+
全部のソースコードは長くなるので、該当部分に関連しないところは削除してありますが、以下が該当ソースコードです。郵便番号に〒602-8303を入力すると住所がはみ出ます。
|
12
|
+
```HTML
|
13
|
+
<!DOCTYPE html>
|
14
|
+
<html>
|
15
|
+
<head>
|
16
|
+
<meta charset="utf-8">
|
17
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
18
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, user-scalable=no">
|
19
|
+
<title>配送設定</title>
|
20
|
+
<script src="https://yubinbango.github.io/yubinbango/yubinbango.js" charset="UTF-8"></script>
|
21
|
+
<style>
|
22
|
+
div #jscroll{
|
23
|
+
width: 210px;
|
24
|
+
height:30px;
|
25
|
+
font-size: 18px;
|
26
|
+
overflow:scroll;
|
27
|
+
-webkit-overflow-scrolling: touch;
|
28
|
+
}
|
29
|
+
/* Google Chrome, Safari, Opera 15+, Android, iOS */
|
30
|
+
::-webkit-input-placeholder {
|
31
|
+
color: #ccc;
|
32
|
+
}
|
33
|
+
/* Firefox 19+ */
|
34
|
+
::-moz-placeholder {
|
35
|
+
color: #ccc; opacity: 1;
|
36
|
+
}
|
37
|
+
/* IE 10+ */
|
38
|
+
:-ms-input-placeholder {
|
39
|
+
color: #ccc;
|
40
|
+
}
|
41
|
+
</style>
|
42
|
+
</head>
|
43
|
+
<body>
|
44
|
+
<h3>2.配送設定</h3>
|
45
|
+
<p>下記フォームにお届先情報を入力後、OKボタンを押してください。</p>
|
46
|
+
<h4>お届け先</h4>
|
47
|
+
<hr>
|
48
|
+
<form action="#" method="post" class="h-adr">
|
49
|
+
|
50
|
+
<div id="deliverBox">
|
51
|
+
<dl class="clearfix">
|
52
|
+
<dt>郵便番号</dt>
|
53
|
+
<dd id=postal>
|
54
|
+
<span class="p-country-name" style="display:none;">Japan</span>
|
55
|
+
〒<input name="deliver_postal1" id="deliver_postal1" type="text" class="p-postal-code" size="8" maxlength="3" placeholder="例)123">
|
56
|
+
―<input name="deliver_postal2" id="deliver_postal2" type="text" class="p-postal-code" size="10" maxlength="4" placeholder="例)4567">
|
57
|
+
<p class="postal_caution">※郵便番号を入力すると、自動で住所が反映されます。</p>
|
58
|
+
</dd>
|
59
|
+
</dl>
|
60
|
+
|
61
|
+
<dl class="clearfix">
|
62
|
+
<dt>住所</dt>
|
63
|
+
<dd>
|
64
|
+
(都道府県&市区町村&町域)<br><div id="jscroll"><input name="deliver_address1" id="deliver_address1" type="text" class="p-region p-locality p-street-address" placeholder="例)東京都港区芝公園"></div>
|
65
|
+
(以降の住所)<br><div id="jscroll">
|
66
|
+
<input name="deliver_address2" id="deliver_address2" type="text" class="p-extended-address" placeholder="例)1-1-1 青空マンション101号"></div>
|
67
|
+
</dd>
|
68
|
+
</dl>
|
69
|
+
</div> <!-- deliverBox end -->
|
70
|
+
<div class="transmission">
|
71
|
+
<input type="button" onclick="history.back()" value="戻る">
|
72
|
+
<input class="btn_submit" id="btn_submit" type="submit" value="OK(支払い設定へ)">
|
73
|
+
</div>
|
74
|
+
</form>
|
75
|
+
</body>
|
76
|
+
</html>
|
77
|
+
```
|
78
|
+
|
10
79
|
###試したこと
|
11
80
|
①cssの変更
|
12
81
|
input要素の前にdivを設定して、そのdivのcssに以下の内容を記入してみるが、input要素をタップして、スクロールしてみようとしますが、オーバーした部分の文字列の内容が確認できずでした。
|