質問編集履歴

3

タグの追加

2018/02/16 03:31

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
File without changes

2

誤字

2018/02/16 03:31

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -56,6 +56,8 @@
56
56
 
57
57
  発生している症状が同じなのでおそらくこちらをandroidで確認していただければわかりやすいかと思います。
58
58
 
59
+ よろしくお願いします!
60
+
59
61
 
60
62
 
61
63
  ```html

1

情報追加0215参考サイトコード追記

2018/02/16 02:39

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  下記のサイトを参考に固定ヘッダーを設置してみました。
4
4
 
5
- https://item.rakuten.co.jp/drinkshop/1480180/
5
+ [https://item.rakuten.co.jp/drinkshop/1480180/](https://item.rakuten.co.jp/drinkshop/1480180/)
6
6
 
7
7
 
8
8
 
@@ -22,7 +22,7 @@
22
22
 
23
23
  ##コード
24
24
 
25
- ```ここに言語を入力
25
+ ```css
26
26
 
27
27
  固定ヘッダー{
28
28
 
@@ -47,3 +47,435 @@
47
47
  }
48
48
 
49
49
  ```
50
+
51
+
52
+
53
+ ##追記
54
+
55
+ こちらの都合上なかなか情報提示が難しいのですが参考サイトのソースを載せます。
56
+
57
+ 発生している症状が同じなのでおそらくこちらをandroidで確認していただければわかりやすいかと思います。
58
+
59
+
60
+
61
+ ```html
62
+
63
+ <style>
64
+
65
+ @charset "euc-jp";
66
+
67
+ /* --------------------------------
68
+
69
+ BoxSizeSetting
70
+
71
+ -------------------------------- */
72
+
73
+
74
+
75
+ *, *:before, *:after {
76
+
77
+ -webkit-box-sizing: border-box;
78
+
79
+ -moz-box-sizing: border-box;
80
+
81
+ box-sizing: border-box;
82
+
83
+ }
84
+
85
+ /* --------------------------------
86
+
87
+ MarginSetting
88
+
89
+ -------------------------------- */
90
+
91
+
92
+
93
+ body, h1, h2, h3, h4, h5, h6, p, address, blockquote, pre, div, dl, dt, dd, ol, ul, li, th, td, form, fieldset, input, textarea {
94
+
95
+ margin: 0 0 0 0;
96
+
97
+ padding: 0 0 0 0;
98
+
99
+ }
100
+
101
+ select {
102
+
103
+ margin: 0 0 0 0;
104
+
105
+ }
106
+
107
+ /* --------------------------------
108
+
109
+ HtmlTagSetting
110
+
111
+ -------------------------------- */
112
+
113
+ html, body {
114
+
115
+ height: 100%;
116
+
117
+ position: relative;
118
+
119
+ }
120
+
121
+ html {
122
+
123
+ font-size: 62.5%;
124
+
125
+ }
126
+
127
+
128
+
129
+ body {
130
+
131
+ width: 100%;
132
+
133
+ height: 100%;
134
+
135
+ font-family: "ヒラギノ角ゴ Pro W3", Hiragino Kaku Gothic Pro, " メイリオ", Meiryo, Osaka, " MS Pゴシック", MS PGothic, " sans-serif";
136
+
137
+ font-size: 1.4rem;
138
+
139
+ line-height: 1.5em;
140
+
141
+ color: #444444;
142
+
143
+ position: relative;
144
+
145
+ }
146
+
147
+ img {
148
+
149
+ border: 0 none;
150
+
151
+ vertical-align: bottom;
152
+
153
+ }
154
+
155
+ ul {
156
+
157
+ font-size: 0;
158
+
159
+ margin:0;
160
+
161
+ padding:0;
162
+
163
+ }
164
+
165
+ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
166
+
167
+ display: block;
168
+
169
+ margin: 0 0 0 0;
170
+
171
+ padding: 0 0 0 0;
172
+
173
+ }
174
+
175
+ a, a:visited {
176
+
177
+ text-decoration: none;
178
+
179
+ color: #444;
180
+
181
+ }
182
+
183
+ /* --------------------------------
184
+
185
+ ClassSetting
186
+
187
+ -------------------------------- */
188
+
189
+ .clearfix {
190
+
191
+ *zoom: 1;
192
+
193
+ }
194
+
195
+ .clearfix:after {
196
+
197
+ content: '';
198
+
199
+ display: table;
200
+
201
+ clear: both;
202
+
203
+ }
204
+
205
+ .clear {
206
+
207
+ clear: both;
208
+
209
+ }
210
+
211
+ /* --------------------------------
212
+
213
+ HeaderSetting
214
+
215
+ -------------------------------- */
216
+
217
+ header {
218
+
219
+ padding: 10px 0 0 10px;
220
+
221
+ background: #262626;
222
+
223
+ width: 100%
224
+
225
+ }
226
+
227
+ /* --------------------------------
228
+
229
+ LayoutSetting
230
+
231
+ -------------------------------- */
232
+
233
+ #spHeader {
234
+
235
+ position: fixed;
236
+
237
+ z-index: 999;
238
+
239
+ top: 0;
240
+
241
+ width: 100%
242
+
243
+ }
244
+
245
+ #spContents {
246
+
247
+ margin: 11rem 0 0 0;
248
+
249
+ }
250
+
251
+ /* --------------------------------
252
+
253
+ SearchSetting
254
+
255
+ -------------------------------- */
256
+
257
+ #spSearch {
258
+
259
+ border-bottom: 1px solid #ccc;
260
+
261
+ border-top: 1px solid #ccc;
262
+
263
+ }
264
+
265
+ #spSearchIn {
266
+
267
+ margin: 5px 0;
268
+
269
+ padding: 10px 0;
270
+
271
+ background: #f6f6f6;
272
+
273
+ }
274
+
275
+ #search-sp {
276
+
277
+ margin: 0 auto;
278
+
279
+ border: solid #ccc 1px;
280
+
281
+ height: 39px;
282
+
283
+ width: 95%;
284
+
285
+ position: relative;
286
+
287
+ background: #fff;
288
+
289
+ }
290
+
291
+ #search-sp #txt-area {
292
+
293
+ font-size: 16px;
294
+
295
+ border: none;
296
+
297
+ padding: 1.5% 3% 2% 3%;
298
+
299
+ width: 85%;
300
+
301
+ border: none;
302
+
303
+ }
304
+
305
+ #search-sp #search-btn {
306
+
307
+ background: url('img/icon_search.gif') no-repeat 50% 50%, #333333;
308
+
309
+ background-size: 70%, 100%;
310
+
311
+ border-radius: 3px;
312
+
313
+ width: 35px;
314
+
315
+ height: 35px;
316
+
317
+ position: absolute;
318
+
319
+ right: 1px;
320
+
321
+ top: 1px;
322
+
323
+ border: none;
324
+
325
+ }
326
+
327
+ /* --------------------------------
328
+
329
+ rmsHeaderSetting
330
+
331
+ -------------------------------- */
332
+
333
+ #rmsHead {
334
+
335
+ background: #262626;
336
+
337
+ }
338
+
339
+ #rmsHead #rmsLogo {
340
+
341
+ width: 30%;
342
+
343
+ display: inline-block;
344
+
345
+ }
346
+
347
+ @media screen and (max-width: 500px) {
348
+
349
+ width: 30%;
350
+
351
+ }
352
+
353
+ #rmsHead #rmsLogo img {
354
+
355
+ width: 100%;
356
+
357
+ }
358
+
359
+ #rmsHead header ul {
360
+
361
+ width: 68%;
362
+
363
+ display: inline-block;
364
+
365
+ vertical-align: top;
366
+
367
+ margin: 0 0 0 0;
368
+
369
+ overflow:hidden;
370
+
371
+ }
372
+
373
+ #rmsHead header ul li {
374
+
375
+ display: inline-block;
376
+
377
+ width: calc(100% / 4);
378
+
379
+ }
380
+
381
+ #rmsHead header ul li img {
382
+
383
+ width: 100%;
384
+
385
+ display: block;
386
+
387
+ }
388
+
389
+ #rmsHead #spSearch {
390
+
391
+ border: none!important;
392
+
393
+ }
394
+
395
+ #rmsHead #spSearchIn {
396
+
397
+ margin: 0!important;
398
+
399
+ }
400
+
401
+ </style>
402
+
403
+ <script type="text/javascript" async="" defer="" src="//r.r10s.jp/com/rat/js/ral-1.0.21.js"></script><script type="text/javascript">
404
+
405
+ function iframeResize(){
406
+
407
+ var PageHight = document.body.scrollHeight +0;// ページの高さを取得
408
+
409
+ window.parent.document.getElementById('spHeaderFrame').style.height = PageHight + 'px'; // iframeの高さを変更
410
+
411
+ }window.onload = iframeResize;
412
+
413
+ </script>
414
+
415
+ <script type="text/template" name="rat" id="ratAccountId" value="1"></script> <script type="text/template" name="rat" id="ratServiceId" value="5"></script> <script type="text/template" name="rat" id="ratSiteSection" value="gold"></script> <script type="text/template" name="rat" id="ratAdobeSiteSection" value="shop"></script> <script type="text/template" name="rat" id="ratPageType" value="gold"></script> <script type="text/javascript" src="https://r.r10s.jp/com/rat/js/rat-cdn.js" async="" defer=""></script></head>
416
+
417
+ <body>
418
+
419
+ <div id="rmsHead">
420
+
421
+
422
+
423
+ <!--ヘッダー-->
424
+
425
+ <header class="clearfix">
426
+
427
+ <section id="rmsLogo"> <a href="https://www.rakuten.ne.jp/gold/drinkshop/" target="_top"> <img src="img/logo.png"> </a> </section>
428
+
429
+ <ul>
430
+
431
+ <li><a href="https://www.rakuten.ne.jp/gold/drinkshop/mail/180215g.html" target="_top"><img src="img/sale2.png"></a></li>
432
+
433
+ <li><a href="https://www.rakuten.ne.jp/gold/drinkshop/frame/shop_daily_rankink_sp.html" target="_top"><img src="img/rank2.png"></a></li>
434
+
435
+ <li><a href="https://item.rakuten.co.jp/drinkshop/c/0000006887#itemtop" target="_top"><img src="img/zaiko2.png"></a></li>
436
+
437
+ <li><a href="https://www.rakuten.ne.jp/gold/drinkshop/frame/cat/topic/guide/guide_index.html" target="_top"><img src="img/guide2.png"></a></li>
438
+
439
+ </ul>
440
+
441
+ </header>
442
+
443
+ <!--検索窓-->
444
+
445
+ <div id="spSearch">
446
+
447
+ <div id="spSearchIn">
448
+
449
+ <div id="search-sp" class="clearfix">
450
+
451
+ <form action="//esearch.rakuten.co.jp/rms/sd/esearch/vc" method="get" target="_top">
452
+
453
+ <input type="hidden" name="sv" value="6">
454
+
455
+ <input type="hidden" name="sid" value="213103">
456
+
457
+ <input type="hidden" name="su" value="/gold/drinkshop/">
458
+
459
+ <input type="hidden" name="sn" value="ドリンク屋">
460
+
461
+ <input type="text" placeholder="キーワードで探す" value="" onfocus="if( this.value == 'ショップ内から商品を探す' ) { this.value = ''; } " onblur="if( this.value == '' ) { this.value = 'ショップ内から商品を探す; } " id="txt-area" name="sitem">
462
+
463
+ <input type="submit" value="" id="search-btn" alt="検索する">
464
+
465
+ </form>
466
+
467
+ </div>
468
+
469
+ </div>
470
+
471
+ </div>
472
+
473
+ </div>
474
+
475
+ <script type="text/javascript" src="https://r.r10s.jp/com/js/d/pa/pa3.min.js" async="" defer=""></script>
476
+
477
+
478
+
479
+ </body></html>
480
+
481
+ ```