teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

追記

2020/02/26 07:17

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -20,8 +20,9 @@
20
20
  domain_nameAは既存サイトを移行してきたもので、まだDNS設定していません。
21
21
  すべて正常動作しているdomain_nameBとdomain_nameAはDNS設定の有無以外すべて同じです。
22
22
 
23
- server/domain_nameA/sp/b.htmlの内容は以下です。
23
+ server/domain_nameA/sp/b.htmlの内容は以下です。(文字数制限に引っかかってしまったので最後はしょってます)
24
24
  ```html
25
+ <?php require_once(dirname(dirname(__FILE__)).'/setting/base.inc'); ?>
25
26
  <!DOCTYPE HTML>
26
27
  <html lang="ja">
27
28
  <head>
@@ -34,7 +35,7 @@
34
35
  <title>タイトル</title>
35
36
  <meta name="Keywords" content="タイトル内容" />
36
37
  <meta name="Desn" content="タイトルのサイト" />
37
- <link rel="canonical" href="URL" />
38
+ <link rel="canonical" href="<?php echo _VAR_URL_; ?>" />
38
39
  <link rel="stylesheet" type="text/css" href="css/style.css" />
39
40
  <link rel="stylesheet" type="text/css" href="css/menu.css" />
40
41
  <style type="text/css">
@@ -89,61 +90,6 @@
89
90
  <div class="header-in">
90
91
  <div class="header-in-box">
91
92
  <div class="left">
92
- <a href="index.html"><img class="himg-left" src="images/common/rogo.png" alt="ジュースやさん" width="176" height="65" /></a></div>
93
- <div class="right">
94
- <a href="s/index.html"><img class="himg-right" src="images/common/s.png" alt="ジュースやさん検索" width="69" height="65" /></a>
95
- <a href="html/n/index.html"><img class="himg-right" src="images/common/n.png" alt="失敗しないジュース作り" width="70" height="65" /></a></div>
96
-
97
- </div>
98
- </div>
99
- </header>
100
-
101
- <div id="contents">
102
- <div class="top">
103
-
104
- <div id="mainvisual">
105
- <div class="pic">
106
- <div class="picbox flipsnap">
107
-
108
- <p class="item"><a href="index.html"><img src="images/common/item1.png" alt="" width="300"></a></p>
109
- <p class="item"><a href="html/n/n_p.html"><img src="images/common/item2.png" alt="" width="300" height="140"></a></p>
110
- <p class="item"><a href="html/li/index.html"><img src="images/common/item3.png" alt="" width="300" height="140"></a></p>
111
- <p class="item"><a href="html/q/index.html"><img src="images/common/item4.png" alt="" width="300" height="140"></a></p>
112
- <p class="item"><a href="#"></a></p><p class="item"><a href="#"></a></p><p class="item"><a href="#"></a></p>
113
- </div>
114
-
115
- <div class="button">
116
- <div class="left prev"><a href="#"><img src="images/common/leftbtn.png" alt="前へ" width="60" height="30"></a></div>
117
- <div class="right next"><a href="#"><img src="images/common/rightbtn.png" alt="次へ" width="60" height="30"></a></div>
118
- </div>
119
- </div>
120
-
121
-
122
- <div class="topsearchbtn"><a href="s/index.html"><img src="images/common/sbtn.png" alt="ジュースやさん検索" width="305" height="72"></a></div>
123
-
124
-
125
- </div>
126
- </div>
127
-
128
- <h1>ジュースつくりとは</h1>
129
- <div id="topmainbtn">
130
- <p class="btn-m1"><a href="html/n/n_p.html"><img src="images/common/topbtn1.png" alt="ジュース 事例集" width="300" height="78"></a></p>
131
- <p class="btn-m2"><a href="html/li/index.html"><img src="images/common/topbtn2.png" alt="ジュースとは" width="300" height="78"></a></p>
132
- <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>
133
- <p class="btn-m4"><a href="html/n/m_i.html"><img src="images/common/topbtn4.png" alt="ジュースサイト紹介" width="300" height="78"></a></p>
134
- </div>
135
-
136
- <div class="topsearchbtn center">
137
- <p><a href="html/a/g.html"><img src="images/common/t_g.png" width="300" height="183" alt=""/></a></p>
138
- <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>
139
- <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>
140
- <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>
141
- <p class="link-ms">ジュース作り教室<br />
142
- <a href="html/a/m_s.html">→情報</a></p>
143
- </div>
144
-
145
-
146
- <div id="menuarea">
147
93
  <div class="menubox">
148
94
  <nav>
149
95
  <ul>
@@ -168,7 +114,7 @@
168
114
  <a href="sitemap.html">サイトマップ</a>
169
115
  <a href="html/a/index.html">ヌードル食べたかった</a></div>
170
116
  <div id="footerinfo_b">
171
- <a href="URL">もうすぐ出る時間公式PCサイト</a>
117
+ <a href="<?php echo _VAR_URL_; ?>">もうすぐ出る時間公式PCサイト</a>
172
118
  <a href="http://www.onakasuita.site/" target="_blank">メニューはしっかり見ようサイト</a></div>
173
119
  <div class="copyright">Copyright (c) <br />ONAKASUITAyo.</div>
174
120
  </div>
@@ -219,4 +165,106 @@
219
165
  <script type="text/javascript" src="http://www.cms-j/cmsasp/log/ajs/beacon1_0.js" ></script>
220
166
  </body>
221
167
  </html>
168
+ ```
169
+
170
+ **追記1:**
171
+ domain_nameA/sp/test.html
172
+ ```html
173
+ <h1>てすとhtml表示成功</h1>
174
+ <?php print_r('php表示成功'); ?>
175
+ ```
176
+ だと正常表示されます。
177
+
178
+ **追記2:**
179
+ domain_nameA/sp/b.html
180
+ の<link rel="stylesheet" type="text/css" href="css/menu.css" />を削除すると、表示は多少くずれますが、一応表示されるようになります。
181
+ sp/css/menu.cssの内容
182
+ ```css
183
+ /**********************************************************
184
+ 1.Javascript
185
+ **********************************************************/
186
+ .dispnone{
187
+ display:none;
188
+ }
189
+
190
+ .vishidden{
191
+ visibility:hidden;
192
+ }
193
+
194
+ /**********************************************************
195
+ 2.Loading
196
+ **********************************************************/
197
+
198
+ #loading{
199
+ position:relative;
200
+ margin:0px 0px 0px 0px;
201
+ padding: 50px 0px 0px 0px;
202
+ background:#FFFFFF;
203
+ text-align:center;
204
+ display:none;
205
+ }
206
+
207
+
208
+ /**********************************************************
209
+ 3.iscroll用
210
+ **********************************************************/
211
+ #header{
212
+ width:100%;
213
+ background-color:#EFF0F1;
214
+
215
+ }
216
+
217
+ #footer{
218
+ position:absolute; z-index:2;
219
+ bottom:0; left:0;
220
+ width:100%;
221
+ }
222
+
223
+ #wrapper{
224
+ position:absolute;
225
+ z-index:1;
226
+ top:0px;
227
+ bottom:0px;
228
+ left:0;
229
+ width:100%;
230
+ overflow:auto;
231
+ background-color:#EFF0F1;
232
+ border-bottom-width: 1px;
233
+ border-bottom-style: solid;
234
+ border-bottom-color: #333333;
235
+ }
236
+
237
+ #scroller{
238
+ position:absolute; z-index:1;
239
+ -webkit-tap-highlight-color:rgba(0,0,255,1);
240
+ width:100%;
241
+ padding:0;
242
+ background-color:#EFF0F1;
243
+ }
244
+
245
+ #scroller a:active{
246
+ -webkit-tap-highlight-color: #DE4C8D;
247
+ }
248
+
249
+ #scroller ul.scroller{
250
+ list-style:none;
251
+ padding:0;
252
+ margin:0;
253
+ width:100%;
254
+ text-align:left;
255
+ }
256
+
257
+ #scrollerr ul.scroller li{
258
+ padding:0 10px;
259
+ border-bottom:1px solid #ccc;
260
+ border-top:1px solid #fff;
261
+ background-color:#fafafa;
262
+ font-size:14rem;
263
+ }
264
+
265
+ div.nav{
266
+ margin:0px;
267
+ clear: both;
268
+ }
269
+
222
270
  ```

1

可読性向上

2020/02/26 07:17

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,5 @@
1
1
  レンタルサーバを使用しています。
2
+ ディレクトリ構造は以下です。
2
3
  server/domain_nameA/f.html
3
4
  server/domain_nameA/html/a.html
4
5
  server/domain_nameA/sp/b.html