質問編集履歴

1

情報の追記

2018/05/13 03:19

投稿

science_mac
science_mac

スコア29

test CHANGED
File without changes
test CHANGED
@@ -12,6 +12,208 @@
12
12
 
13
13
 
14
14
 
15
+ ```PHP
16
+
17
+ <div class="tabs_wrap">
18
+
19
+ <ul class="tabs">
20
+
21
+ <li><a href="#">1</a></li>
22
+
23
+ <li><a href="#">2</a></li>
24
+
25
+ <li><a href="#">3</a></li>
26
+
27
+ </ul>
28
+
29
+ <div class="tabs_content">
30
+
31
+ <div>
32
+
33
+ <p>
34
+
35
+ <!-- ここからモーダルウィンドウ実装 -->
36
+
37
+ <div id="modal-content">
38
+
39
+ <!-- モーダルウィンドウのコンテンツ開始 -->
40
+
41
+ <button type="button" name="select_delete" value="select_delete" class="select_delete" onclick="javaScript:DisChecked()">チェックを全て外す</button>
42
+
43
+ <br>
44
+
45
+ <input type="text" id="keyword" name="keyword" size="30" disabled="disabled"/>
46
+
47
+ <div id="material_select">
48
+
49
+ <div id="meet_select">
50
+
51
+ <p><a href="javaScript:pullDown('id1')">テスト</a></p>
52
+
53
+ </div>
54
+
55
+ <div id="id1" style="display:none;">
56
+
57
+ <div class="all-container">
58
+
59
+ <div id="check-label-container">
60
+
61
+ <label class="check-label">
62
+
63
+ <span>テスト1</span>
64
+
65
+ <input type="checkbox" name="check" value="テスト1">
66
+
67
+ <span class="checkmark"></span>
68
+
69
+ </label>
70
+
71
+ <label class="check-label">
72
+
73
+ <span>テスト2</span>
74
+
75
+ <input type="checkbox" name="check" value="テスト2">
76
+
77
+ <span class="checkmark"></span>
78
+
79
+ </label>
80
+
81
+ </div>
82
+
83
+ </div>
84
+
85
+ </div>
86
+
87
+ </div>
88
+
89
+ <div id="select_ok">
90
+
91
+ <button type="button" name="select_ok" value="select_ok" class="select_ok" onclick="javaScript:OK()">OK</button>
92
+
93
+ </div>
94
+
95
+ </div>
96
+
97
+ <input id="modal-open" value="モーダル表示" class="button-link">
98
+
99
+ <!-- ここまでモーダルウィンドウ -->
100
+
101
+ <form action="search-result" method="get">
102
+
103
+ <input type="hidden" name="page_no" value="1">
104
+
105
+ <span style="border: 1px solid #cccccc; padding: 10px; background: #f2f2f2;">
106
+
107
+ <input id="selected_only" type="checkbox" name="selected_only" value="true">
108
+
109
+ <label for="selected_only">チェックボックス</label>
110
+
111
+ </span>
112
+
113
+ <br>
114
+
115
+ <div class="front_recipe_search">
116
+
117
+ <input id="front_searchfield" type="text" maxlength="30" placeholder="例) テスト" name="materials" class="front_searchfield" value=""/>
118
+
119
+ <button type="submit" value="materials" name="type" class="search">検索</button>
120
+
121
+ <button type="reset" value="クリアする" name="form_clear" class="form_clear">クリアする</button>
122
+
123
+ </div>
124
+
125
+ </form>
126
+
127
+ </p>
128
+
129
+ </div>
130
+
131
+
132
+
133
+ <div>
134
+
135
+ <p>
136
+
137
+ <form action="search-result" method="get">
138
+
139
+ <input type="hidden" name="page_no" value="1">
140
+
141
+ <input type="text" placeholder="例) テスト" name="recipe_name" class="front_recipename_searchfield">
142
+
143
+ <br>
144
+
145
+ <button type="submit" value="name" name="type" class="recipename_search">検索</button>
146
+
147
+ <br>
148
+
149
+ <br>
150
+
151
+ <button type="reset" class="form_clear_name">クリアする</button>
152
+
153
+ </form>
154
+
155
+ </p>
156
+
157
+ </div>
158
+
159
+
160
+
161
+ <div>
162
+
163
+ <p>
164
+
165
+ <form action="search-result" method="get">
166
+
167
+ <input type="hidden" name="type" value="genre">
168
+
169
+ <input type="hidden" name="page_no" value="1">
170
+
171
+ <button type="submit" value="VEGETABLE" name="genre" class="genre">テスト</button>
172
+
173
+ <button type="submit" value="RICE" name="genre" class="genre">テスト</button>
174
+
175
+ <br>
176
+
177
+ <br>
178
+
179
+ <button type="submit" value="MEAT_DISH" name="genre" class="genre">テスト</button>
180
+
181
+ <button type="submit" value="FISH_DISH" name="genre" class="genre">テスト</button>
182
+
183
+ <br>
184
+
185
+ <br>
186
+
187
+ <button type="submit" value="NOODLES" name="genre" class="genre">テスト</button>
188
+
189
+ <button type="submit" value="SOUP_STOCK" name="genre" class="genre">テスト</button>
190
+
191
+ <br>
192
+
193
+ <br>
194
+
195
+ <button type="submit" value="CASSEROLE" name="genre" class="genre">テスト</button>
196
+
197
+ <button type="submit" value="OTHERS" name="genre" class="genre">テスト</button>
198
+
199
+ <br>
200
+
201
+ </form>
202
+
203
+ </p>
204
+
205
+ </div>
206
+
207
+
208
+
209
+ </div>
210
+
211
+ </div>
212
+
213
+ ```
214
+
215
+
216
+
15
217
  ※jQueryで書いています。
16
218
 
17
219
  ```JavaScript
@@ -148,6 +350,272 @@
148
350
 
149
351
  ```CSS
150
352
 
353
+ body {
354
+
355
+ background-color: #ffffe1;
356
+
357
+ }
358
+
359
+
360
+
361
+ /* メニュータブ */
362
+
363
+ ul.tabs {
364
+
365
+ width: 880px;
366
+
367
+ margin-top: 200px;
368
+
369
+ margin-left: auto;
370
+
371
+ margin-right : auto;
372
+
373
+ list-style: none;
374
+
375
+ }
376
+
377
+ ul.tabs li {
378
+
379
+ background: #e2f0d9;
380
+
381
+ border-right: 1px solid #ff3c14;
382
+
383
+ border-top: 1px solid #ff3c14;
384
+
385
+ border-bottom: none;
386
+
387
+ margin-bottom: 0;
388
+
389
+ float: left;
390
+
391
+ }
392
+
393
+
394
+
395
+ ul.tabs li:first-child {
396
+
397
+ border-left: 1px solid #ff3c14;
398
+
399
+ }
400
+
401
+
402
+
403
+ ul.tabs li.active {
404
+
405
+ border-bottom: 1px solid #FFF;
406
+
407
+ background-color: white;
408
+
409
+ margin-bottom: -1px;
410
+
411
+ }
412
+
413
+ ul.tabs li a {
414
+
415
+ display: block;
416
+
417
+ padding: 5px 10px;
418
+
419
+ color: #777;
420
+
421
+ text-decoration: none;
422
+
423
+ }
424
+
425
+ ul.tabs li.active a {
426
+
427
+ font-weight: bold;
428
+
429
+ color: #000;
430
+
431
+ }
432
+
433
+ div.tabs_content {
434
+
435
+ width: 800px;
436
+
437
+ margin-left: auto;
438
+
439
+ margin-right : auto;
440
+
441
+ border: 1px solid #ff3c14;
442
+
443
+ clear: both;
444
+
445
+ }
446
+
447
+ div.tabs_content > div {
448
+
449
+ background: white;
450
+
451
+ padding: 20px;
452
+
453
+ text-align: center;
454
+
455
+ }
456
+
457
+
458
+
459
+ div.front_recipe_search {
460
+
461
+ margin: 0;
462
+
463
+ padding: 20px 70px;
464
+
465
+ }
466
+
467
+
468
+
469
+ input.front_searchfield {
470
+
471
+ width : 300px;
472
+
473
+ margin: 0 auto;
474
+
475
+ color: black;
476
+
477
+ border-color:#009245;
478
+
479
+ float:left;
480
+
481
+ }
482
+
483
+
484
+
485
+ input.front_recipename_searchfield {
486
+
487
+ width : 500px;
488
+
489
+ margin: 0 auto;
490
+
491
+ color: black;
492
+
493
+ border-color:#009245;
494
+
495
+ }
496
+
497
+
498
+
499
+ button.search {
500
+
501
+ /* 文字サイズの指定 */
502
+
503
+ font-size: 0.9em;
504
+
505
+ /* 角丸の指定 */
506
+
507
+ -moz-border-radius: 5px;
508
+
509
+ -webkit-border-radius: 5px;
510
+
511
+ border-radius: 5px;
512
+
513
+ width: 150px;
514
+
515
+ height: 35px;
516
+
517
+ color:white;
518
+
519
+ background-color:#ff5f41;
520
+
521
+ border-color:#ff5f41;
522
+
523
+ float:left;
524
+
525
+ margin-left: 5px;
526
+
527
+ margin-right: 5px;
528
+
529
+ }
530
+
531
+
532
+
533
+ button.recipename_search {
534
+
535
+ /* 文字サイズの指定 */
536
+
537
+ font-size: 0.9em;
538
+
539
+ /* 角丸の指定 */
540
+
541
+ -moz-border-radius: 5px;
542
+
543
+ -webkit-border-radius: 5px;
544
+
545
+ border-radius: 5px;
546
+
547
+ width: 200px;
548
+
549
+ height: 38px;
550
+
551
+ color:white;
552
+
553
+ background-color:#ff5f41;
554
+
555
+ border-color:#ff5f41;
556
+
557
+ }
558
+
559
+
560
+
561
+ button.form_clear {
562
+
563
+ /* 文字サイズの指定 */
564
+
565
+ font-size: 0.9em;
566
+
567
+ /* 角丸の指定 */
568
+
569
+ -moz-border-radius: 5px;
570
+
571
+ -webkit-border-radius: 5px;
572
+
573
+ border-radius: 5px;
574
+
575
+ width: 150px;
576
+
577
+ height: 35px;
578
+
579
+ color: white;
580
+
581
+ background-color:#a5a5a5;
582
+
583
+ border-color:#a5a5a5;
584
+
585
+ float:left;
586
+
587
+ }
588
+
589
+
590
+
591
+ button.form_clear_name {
592
+
593
+ /* 文字サイズの指定 */
594
+
595
+ font-size: 0.9em;
596
+
597
+ /* 角丸の指定 */
598
+
599
+ -moz-border-radius: 5px;
600
+
601
+ -webkit-border-radius: 5px;
602
+
603
+ border-radius: 5px;
604
+
605
+ width: 160px;
606
+
607
+ height: 38px;
608
+
609
+ color: white;
610
+
611
+ background-color:#a5a5a5;
612
+
613
+ border-color:#a5a5a5;
614
+
615
+ }
616
+
617
+
618
+
151
619
  #modal-content{
152
620
 
153
621
  width:50%;
@@ -196,6 +664,44 @@
196
664
 
197
665
  }
198
666
 
667
+
668
+
669
+ .button-link{
670
+
671
+ margin-bottom : 20px;
672
+
673
+ text-align:center;
674
+
675
+ -moz-border-radius: 5px;
676
+
677
+ -webkit-border-radius: 5px;
678
+
679
+ border-radius: 5px;
680
+
681
+ WIDTH: 200px;
682
+
683
+ HEIGHT: 38px;
684
+
685
+ font-size:15px;
686
+
687
+ color: white;
688
+
689
+ background-color:#008000;
690
+
691
+ border-color:#92d050;
692
+
693
+ }
694
+
695
+
696
+
697
+ .button-link:hover{
698
+
699
+ cursor:pointer;
700
+
701
+ }
702
+
703
+
704
+
199
705
  ```
200
706
 
201
707