質問編集履歴
1
情報の追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,6 +5,107 @@
|
|
5
5
|
なぜずれてしまうのか原因が分からないため、どこが原因になっているかを知りたいです。
|
6
6
|
対策については指摘いただいた原因を基にして考えられたらなと思っています。
|
7
7
|
|
8
|
+
```PHP
|
9
|
+
<div class="tabs_wrap">
|
10
|
+
<ul class="tabs">
|
11
|
+
<li><a href="#">1</a></li>
|
12
|
+
<li><a href="#">2</a></li>
|
13
|
+
<li><a href="#">3</a></li>
|
14
|
+
</ul>
|
15
|
+
<div class="tabs_content">
|
16
|
+
<div>
|
17
|
+
<p>
|
18
|
+
<!-- ここからモーダルウィンドウ実装 -->
|
19
|
+
<div id="modal-content">
|
20
|
+
<!-- モーダルウィンドウのコンテンツ開始 -->
|
21
|
+
<button type="button" name="select_delete" value="select_delete" class="select_delete" onclick="javaScript:DisChecked()">チェックを全て外す</button>
|
22
|
+
<br>
|
23
|
+
<input type="text" id="keyword" name="keyword" size="30" disabled="disabled"/>
|
24
|
+
<div id="material_select">
|
25
|
+
<div id="meet_select">
|
26
|
+
<p><a href="javaScript:pullDown('id1')">テスト</a></p>
|
27
|
+
</div>
|
28
|
+
<div id="id1" style="display:none;">
|
29
|
+
<div class="all-container">
|
30
|
+
<div id="check-label-container">
|
31
|
+
<label class="check-label">
|
32
|
+
<span>テスト1</span>
|
33
|
+
<input type="checkbox" name="check" value="テスト1">
|
34
|
+
<span class="checkmark"></span>
|
35
|
+
</label>
|
36
|
+
<label class="check-label">
|
37
|
+
<span>テスト2</span>
|
38
|
+
<input type="checkbox" name="check" value="テスト2">
|
39
|
+
<span class="checkmark"></span>
|
40
|
+
</label>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
<div id="select_ok">
|
46
|
+
<button type="button" name="select_ok" value="select_ok" class="select_ok" onclick="javaScript:OK()">OK</button>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
<input id="modal-open" value="モーダル表示" class="button-link">
|
50
|
+
<!-- ここまでモーダルウィンドウ -->
|
51
|
+
<form action="search-result" method="get">
|
52
|
+
<input type="hidden" name="page_no" value="1">
|
53
|
+
<span style="border: 1px solid #cccccc; padding: 10px; background: #f2f2f2;">
|
54
|
+
<input id="selected_only" type="checkbox" name="selected_only" value="true">
|
55
|
+
<label for="selected_only">チェックボックス</label>
|
56
|
+
</span>
|
57
|
+
<br>
|
58
|
+
<div class="front_recipe_search">
|
59
|
+
<input id="front_searchfield" type="text" maxlength="30" placeholder="例) テスト" name="materials" class="front_searchfield" value=""/>
|
60
|
+
<button type="submit" value="materials" name="type" class="search">検索</button>
|
61
|
+
<button type="reset" value="クリアする" name="form_clear" class="form_clear">クリアする</button>
|
62
|
+
</div>
|
63
|
+
</form>
|
64
|
+
</p>
|
65
|
+
</div>
|
66
|
+
|
67
|
+
<div>
|
68
|
+
<p>
|
69
|
+
<form action="search-result" method="get">
|
70
|
+
<input type="hidden" name="page_no" value="1">
|
71
|
+
<input type="text" placeholder="例) テスト" name="recipe_name" class="front_recipename_searchfield">
|
72
|
+
<br>
|
73
|
+
<button type="submit" value="name" name="type" class="recipename_search">検索</button>
|
74
|
+
<br>
|
75
|
+
<br>
|
76
|
+
<button type="reset" class="form_clear_name">クリアする</button>
|
77
|
+
</form>
|
78
|
+
</p>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
<div>
|
82
|
+
<p>
|
83
|
+
<form action="search-result" method="get">
|
84
|
+
<input type="hidden" name="type" value="genre">
|
85
|
+
<input type="hidden" name="page_no" value="1">
|
86
|
+
<button type="submit" value="VEGETABLE" name="genre" class="genre">テスト</button>
|
87
|
+
<button type="submit" value="RICE" name="genre" class="genre">テスト</button>
|
88
|
+
<br>
|
89
|
+
<br>
|
90
|
+
<button type="submit" value="MEAT_DISH" name="genre" class="genre">テスト</button>
|
91
|
+
<button type="submit" value="FISH_DISH" name="genre" class="genre">テスト</button>
|
92
|
+
<br>
|
93
|
+
<br>
|
94
|
+
<button type="submit" value="NOODLES" name="genre" class="genre">テスト</button>
|
95
|
+
<button type="submit" value="SOUP_STOCK" name="genre" class="genre">テスト</button>
|
96
|
+
<br>
|
97
|
+
<br>
|
98
|
+
<button type="submit" value="CASSEROLE" name="genre" class="genre">テスト</button>
|
99
|
+
<button type="submit" value="OTHERS" name="genre" class="genre">テスト</button>
|
100
|
+
<br>
|
101
|
+
</form>
|
102
|
+
</p>
|
103
|
+
</div>
|
104
|
+
|
105
|
+
</div>
|
106
|
+
</div>
|
107
|
+
```
|
108
|
+
|
8
109
|
※jQueryで書いています。
|
9
110
|
```JavaScript
|
10
111
|
<script>
|
@@ -73,6 +174,139 @@
|
|
73
174
|
```
|
74
175
|
|
75
176
|
```CSS
|
177
|
+
body {
|
178
|
+
background-color: #ffffe1;
|
179
|
+
}
|
180
|
+
|
181
|
+
/* メニュータブ */
|
182
|
+
ul.tabs {
|
183
|
+
width: 880px;
|
184
|
+
margin-top: 200px;
|
185
|
+
margin-left: auto;
|
186
|
+
margin-right : auto;
|
187
|
+
list-style: none;
|
188
|
+
}
|
189
|
+
ul.tabs li {
|
190
|
+
background: #e2f0d9;
|
191
|
+
border-right: 1px solid #ff3c14;
|
192
|
+
border-top: 1px solid #ff3c14;
|
193
|
+
border-bottom: none;
|
194
|
+
margin-bottom: 0;
|
195
|
+
float: left;
|
196
|
+
}
|
197
|
+
|
198
|
+
ul.tabs li:first-child {
|
199
|
+
border-left: 1px solid #ff3c14;
|
200
|
+
}
|
201
|
+
|
202
|
+
ul.tabs li.active {
|
203
|
+
border-bottom: 1px solid #FFF;
|
204
|
+
background-color: white;
|
205
|
+
margin-bottom: -1px;
|
206
|
+
}
|
207
|
+
ul.tabs li a {
|
208
|
+
display: block;
|
209
|
+
padding: 5px 10px;
|
210
|
+
color: #777;
|
211
|
+
text-decoration: none;
|
212
|
+
}
|
213
|
+
ul.tabs li.active a {
|
214
|
+
font-weight: bold;
|
215
|
+
color: #000;
|
216
|
+
}
|
217
|
+
div.tabs_content {
|
218
|
+
width: 800px;
|
219
|
+
margin-left: auto;
|
220
|
+
margin-right : auto;
|
221
|
+
border: 1px solid #ff3c14;
|
222
|
+
clear: both;
|
223
|
+
}
|
224
|
+
div.tabs_content > div {
|
225
|
+
background: white;
|
226
|
+
padding: 20px;
|
227
|
+
text-align: center;
|
228
|
+
}
|
229
|
+
|
230
|
+
div.front_recipe_search {
|
231
|
+
margin: 0;
|
232
|
+
padding: 20px 70px;
|
233
|
+
}
|
234
|
+
|
235
|
+
input.front_searchfield {
|
236
|
+
width : 300px;
|
237
|
+
margin: 0 auto;
|
238
|
+
color: black;
|
239
|
+
border-color:#009245;
|
240
|
+
float:left;
|
241
|
+
}
|
242
|
+
|
243
|
+
input.front_recipename_searchfield {
|
244
|
+
width : 500px;
|
245
|
+
margin: 0 auto;
|
246
|
+
color: black;
|
247
|
+
border-color:#009245;
|
248
|
+
}
|
249
|
+
|
250
|
+
button.search {
|
251
|
+
/* 文字サイズの指定 */
|
252
|
+
font-size: 0.9em;
|
253
|
+
/* 角丸の指定 */
|
254
|
+
-moz-border-radius: 5px;
|
255
|
+
-webkit-border-radius: 5px;
|
256
|
+
border-radius: 5px;
|
257
|
+
width: 150px;
|
258
|
+
height: 35px;
|
259
|
+
color:white;
|
260
|
+
background-color:#ff5f41;
|
261
|
+
border-color:#ff5f41;
|
262
|
+
float:left;
|
263
|
+
margin-left: 5px;
|
264
|
+
margin-right: 5px;
|
265
|
+
}
|
266
|
+
|
267
|
+
button.recipename_search {
|
268
|
+
/* 文字サイズの指定 */
|
269
|
+
font-size: 0.9em;
|
270
|
+
/* 角丸の指定 */
|
271
|
+
-moz-border-radius: 5px;
|
272
|
+
-webkit-border-radius: 5px;
|
273
|
+
border-radius: 5px;
|
274
|
+
width: 200px;
|
275
|
+
height: 38px;
|
276
|
+
color:white;
|
277
|
+
background-color:#ff5f41;
|
278
|
+
border-color:#ff5f41;
|
279
|
+
}
|
280
|
+
|
281
|
+
button.form_clear {
|
282
|
+
/* 文字サイズの指定 */
|
283
|
+
font-size: 0.9em;
|
284
|
+
/* 角丸の指定 */
|
285
|
+
-moz-border-radius: 5px;
|
286
|
+
-webkit-border-radius: 5px;
|
287
|
+
border-radius: 5px;
|
288
|
+
width: 150px;
|
289
|
+
height: 35px;
|
290
|
+
color: white;
|
291
|
+
background-color:#a5a5a5;
|
292
|
+
border-color:#a5a5a5;
|
293
|
+
float:left;
|
294
|
+
}
|
295
|
+
|
296
|
+
button.form_clear_name {
|
297
|
+
/* 文字サイズの指定 */
|
298
|
+
font-size: 0.9em;
|
299
|
+
/* 角丸の指定 */
|
300
|
+
-moz-border-radius: 5px;
|
301
|
+
-webkit-border-radius: 5px;
|
302
|
+
border-radius: 5px;
|
303
|
+
width: 160px;
|
304
|
+
height: 38px;
|
305
|
+
color: white;
|
306
|
+
background-color:#a5a5a5;
|
307
|
+
border-color:#a5a5a5;
|
308
|
+
}
|
309
|
+
|
76
310
|
#modal-content{
|
77
311
|
width:50%;
|
78
312
|
height:550px;
|
@@ -97,6 +331,25 @@
|
|
97
331
|
height:120%;
|
98
332
|
background-color:rgba(0,0,0,0.75);
|
99
333
|
}
|
334
|
+
|
335
|
+
.button-link{
|
336
|
+
margin-bottom : 20px;
|
337
|
+
text-align:center;
|
338
|
+
-moz-border-radius: 5px;
|
339
|
+
-webkit-border-radius: 5px;
|
340
|
+
border-radius: 5px;
|
341
|
+
WIDTH: 200px;
|
342
|
+
HEIGHT: 38px;
|
343
|
+
font-size:15px;
|
344
|
+
color: white;
|
345
|
+
background-color:#008000;
|
346
|
+
border-color:#92d050;
|
347
|
+
}
|
348
|
+
|
349
|
+
.button-link:hover{
|
350
|
+
cursor:pointer;
|
351
|
+
}
|
352
|
+
|
100
353
|
```
|
101
354
|
|
102
355
|
不足している情報ありましたらご指摘ください。
|