質問編集履歴

2

追記

2020/02/26 07:17

投稿

ringoman
ringoman

スコア17

test CHANGED
File without changes
test CHANGED
@@ -42,10 +42,12 @@
42
42
 
43
43
 
44
44
 
45
- server/domain_nameA/sp/b.htmlの内容は以下です。
45
+ server/domain_nameA/sp/b.htmlの内容は以下です。(文字数制限に引っかかってしまったので最後はしょってます)
46
46
 
47
47
  ```html
48
48
 
49
+ <?php require_once(dirname(dirname(__FILE__)).'/setting/base.inc'); ?>
50
+
49
51
  <!DOCTYPE HTML>
50
52
 
51
53
  <html lang="ja">
@@ -70,7 +72,7 @@
70
72
 
71
73
  <meta name="Desn" content="タイトルのサイト" />
72
74
 
73
- <link rel="canonical" href="URL" />
75
+ <link rel="canonical" href="<?php echo _VAR_URL_; ?>" />
74
76
 
75
77
  <link rel="stylesheet" type="text/css" href="css/style.css" />
76
78
 
@@ -180,116 +182,6 @@
180
182
 
181
183
  <div class="left">
182
184
 
183
- <a href="index.html"><img class="himg-left" src="images/common/rogo.png" alt="ジュースやさん" width="176" height="65" /></a></div>
184
-
185
- <div class="right">
186
-
187
- <a href="s/index.html"><img class="himg-right" src="images/common/s.png" alt="ジュースやさん検索" width="69" height="65" /></a>
188
-
189
- <a href="html/n/index.html"><img class="himg-right" src="images/common/n.png" alt="失敗しないジュース作り" width="70" height="65" /></a></div>
190
-
191
-
192
-
193
- </div>
194
-
195
- </div>
196
-
197
- </header>
198
-
199
-
200
-
201
- <div id="contents">
202
-
203
- <div class="top">
204
-
205
-
206
-
207
- <div id="mainvisual">
208
-
209
- <div class="pic">
210
-
211
- <div class="picbox flipsnap">
212
-
213
-
214
-
215
- <p class="item"><a href="index.html"><img src="images/common/item1.png" alt="" width="300"></a></p>
216
-
217
- <p class="item"><a href="html/n/n_p.html"><img src="images/common/item2.png" alt="" width="300" height="140"></a></p>
218
-
219
- <p class="item"><a href="html/li/index.html"><img src="images/common/item3.png" alt="" width="300" height="140"></a></p>
220
-
221
- <p class="item"><a href="html/q/index.html"><img src="images/common/item4.png" alt="" width="300" height="140"></a></p>
222
-
223
- <p class="item"><a href="#"></a></p><p class="item"><a href="#"></a></p><p class="item"><a href="#"></a></p>
224
-
225
- </div>
226
-
227
-
228
-
229
- <div class="button">
230
-
231
- <div class="left prev"><a href="#"><img src="images/common/leftbtn.png" alt="前へ" width="60" height="30"></a></div>
232
-
233
- <div class="right next"><a href="#"><img src="images/common/rightbtn.png" alt="次へ" width="60" height="30"></a></div>
234
-
235
- </div>
236
-
237
- </div>
238
-
239
-
240
-
241
-
242
-
243
- <div class="topsearchbtn"><a href="s/index.html"><img src="images/common/sbtn.png" alt="ジュースやさん検索" width="305" height="72"></a></div>
244
-
245
-
246
-
247
-
248
-
249
- </div>
250
-
251
- </div>
252
-
253
-
254
-
255
- <h1>ジュースつくりとは</h1>
256
-
257
- <div id="topmainbtn">
258
-
259
- <p class="btn-m1"><a href="html/n/n_p.html"><img src="images/common/topbtn1.png" alt="ジュース 事例集" width="300" height="78"></a></p>
260
-
261
- <p class="btn-m2"><a href="html/li/index.html"><img src="images/common/topbtn2.png" alt="ジュースとは" width="300" height="78"></a></p>
262
-
263
- <p class="btn-m3"><a href="html/q/index.html"><img src="images/common/topbtn3.png" alt="プロに訊くQ&amp;A" width="300" height="78"></a></p>
264
-
265
- <p class="btn-m4"><a href="html/n/m_i.html"><img src="images/common/topbtn4.png" alt="ジュースサイト紹介" width="300" height="78"></a></p>
266
-
267
- </div>
268
-
269
-
270
-
271
- <div class="topsearchbtn center">
272
-
273
- <p><a href="html/a/g.html"><img src="images/common/t_g.png" width="300" height="183" alt=""/></a></p>
274
-
275
- <p><a href="../g/j_g_d.pdf" target="_blank"><img src="images/common/g_dl_d.png" width="300" height="52" alt="スイカジュース"/></a></p>
276
-
277
- <p><a href="../g/j_g_u.pdf" target="_blank"><img src="images/common/g_dl_u.png" width="300" height="52" alt="ライムジュース"/></a></p>
278
-
279
- <p><a href="../g/j_g_q.pdf" target="_blank"><img src="images/common/g_dl_q.png" width="300" height="52" alt="ブルーハワイ"/></a></p>
280
-
281
- <p class="link-ms">ジュース作り教室<br />
282
-
283
- <a href="html/a/m_s.html">→情報</a></p>
284
-
285
- </div>
286
-
287
-
288
-
289
-
290
-
291
- <div id="menuarea">
292
-
293
185
  <div class="menubox">
294
186
 
295
187
  <nav>
@@ -338,7 +230,7 @@
338
230
 
339
231
  <div id="footerinfo_b">
340
232
 
341
- <a href="URL">もうすぐ出る時間公式PCサイト</a>
233
+ <a href="<?php echo _VAR_URL_; ?>">もうすぐ出る時間公式PCサイト</a>
342
234
 
343
235
  <a href="http://www.onakasuita.site/" target="_blank">メニューはしっかり見ようサイト</a></div>
344
236
 
@@ -441,3 +333,207 @@
441
333
  </html>
442
334
 
443
335
  ```
336
+
337
+
338
+
339
+ **追記1:**
340
+
341
+ domain_nameA/sp/test.html
342
+
343
+ ```html
344
+
345
+ <h1>てすとhtml表示成功</h1>
346
+
347
+ <?php print_r('php表示成功'); ?>
348
+
349
+ ```
350
+
351
+ だと正常表示されます。
352
+
353
+
354
+
355
+ **追記2:**
356
+
357
+ domain_nameA/sp/b.html
358
+
359
+ の<link rel="stylesheet" type="text/css" href="css/menu.css" />を削除すると、表示は多少くずれますが、一応表示されるようになります。
360
+
361
+ sp/css/menu.cssの内容
362
+
363
+ ```css
364
+
365
+ /**********************************************************
366
+
367
+ 1.Javascript
368
+
369
+ **********************************************************/
370
+
371
+ .dispnone{
372
+
373
+ display:none;
374
+
375
+ }
376
+
377
+
378
+
379
+ .vishidden{
380
+
381
+ visibility:hidden;
382
+
383
+ }
384
+
385
+
386
+
387
+ /**********************************************************
388
+
389
+ 2.Loading
390
+
391
+ **********************************************************/
392
+
393
+
394
+
395
+ #loading{
396
+
397
+ position:relative;
398
+
399
+ margin:0px 0px 0px 0px;
400
+
401
+ padding: 50px 0px 0px 0px;
402
+
403
+ background:#FFFFFF;
404
+
405
+ text-align:center;
406
+
407
+ display:none;
408
+
409
+ }
410
+
411
+
412
+
413
+
414
+
415
+ /**********************************************************
416
+
417
+ 3.iscroll用
418
+
419
+ **********************************************************/
420
+
421
+ #header{
422
+
423
+ width:100%;
424
+
425
+ background-color:#EFF0F1;
426
+
427
+
428
+
429
+ }
430
+
431
+
432
+
433
+ #footer{
434
+
435
+ position:absolute; z-index:2;
436
+
437
+ bottom:0; left:0;
438
+
439
+ width:100%;
440
+
441
+ }
442
+
443
+
444
+
445
+ #wrapper{
446
+
447
+ position:absolute;
448
+
449
+ z-index:1;
450
+
451
+ top:0px;
452
+
453
+ bottom:0px;
454
+
455
+ left:0;
456
+
457
+ width:100%;
458
+
459
+ overflow:auto;
460
+
461
+ background-color:#EFF0F1;
462
+
463
+ border-bottom-width: 1px;
464
+
465
+ border-bottom-style: solid;
466
+
467
+ border-bottom-color: #333333;
468
+
469
+ }
470
+
471
+
472
+
473
+ #scroller{
474
+
475
+ position:absolute; z-index:1;
476
+
477
+ -webkit-tap-highlight-color:rgba(0,0,255,1);
478
+
479
+ width:100%;
480
+
481
+ padding:0;
482
+
483
+ background-color:#EFF0F1;
484
+
485
+ }
486
+
487
+
488
+
489
+ #scroller a:active{
490
+
491
+ -webkit-tap-highlight-color: #DE4C8D;
492
+
493
+ }
494
+
495
+
496
+
497
+ #scroller ul.scroller{
498
+
499
+ list-style:none;
500
+
501
+ padding:0;
502
+
503
+ margin:0;
504
+
505
+ width:100%;
506
+
507
+ text-align:left;
508
+
509
+ }
510
+
511
+
512
+
513
+ #scrollerr ul.scroller li{
514
+
515
+ padding:0 10px;
516
+
517
+ border-bottom:1px solid #ccc;
518
+
519
+ border-top:1px solid #fff;
520
+
521
+ background-color:#fafafa;
522
+
523
+ font-size:14rem;
524
+
525
+ }
526
+
527
+
528
+
529
+ div.nav{
530
+
531
+ margin:0px;
532
+
533
+ clear: both;
534
+
535
+ }
536
+
537
+
538
+
539
+ ```

1

可読性向上

2020/02/26 07:17

投稿

ringoman
ringoman

スコア17

test CHANGED
File without changes
test CHANGED
@@ -1,5 +1,7 @@
1
1
  レンタルサーバを使用しています。
2
2
 
3
+ ディレクトリ構造は以下です。
4
+
3
5
  server/domain_nameA/f.html
4
6
 
5
7
  server/domain_nameA/html/a.html