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

質問編集履歴

2

cssも追加いたしました

2019/05/08 04:27

投稿

kosabi
kosabi

スコア15

title CHANGED
File without changes
body CHANGED
@@ -58,6 +58,50 @@
58
58
  </ul>
59
59
  ```
60
60
 
61
+ ```
62
+ ul{
63
+ list-style:none;
64
+ margin: 0 auto;
65
+ padding: 2% 0 3%;
66
+ width: 62.5rem;
67
+ clear:both;
68
+ }
69
+ ul > li{
70
+ width: 49%;
71
+ height: 60px;
72
+ margin: 0;
73
+ padding-bottom:2px;
74
+ float:left;
75
+ position:relative;
76
+ }
77
+ ul.oe_menu > li:last-child {
78
+ float: right;
79
+ }
61
80
 
81
+ ul div.right_box {
82
+ overflow: hidden;
83
+ position:absolute;
84
+ top: 0;
85
+ right: 0;
86
+ width: 1000px;
87
+ background-color:#56809c;
88
+ padding: 3% 4% 5%;
89
+ display:none;
90
+ }
91
+
92
+ ul div.left_box {
93
+ overflow: hidden;
94
+ position:absolute;
95
+ top: 0;
96
+ left: 0;
97
+ width: 1000px;
98
+ background-color:#38576b;
99
+ padding: 3% 4% 5%;
100
+ display:none;
101
+ }
102
+
103
+ ```
104
+
105
+
62
106
  基礎的な事で大変申し訳ありませんが
63
107
  よろしくお願い致します。

1

htmlを追加、言語をcodeに致しました。

2019/05/08 04:27

投稿

kosabi
kosabi

スコア15

title CHANGED
File without changes
body CHANGED
@@ -17,6 +17,7 @@
17
17
 
18
18
  ### 該当のソースコード
19
19
 
20
+ ```
20
21
  /*右メニュー閉じる*/
21
22
  $(document).on('click touchstart', function(e) {
22
23
  if (!$(e.target).closest('.right_box').length) {
@@ -30,7 +31,33 @@
30
31
  $header.removeClass('open');
31
32
  }
32
33
  });
34
+ ```
33
35
 
36
+ ```
37
+ <ul>
38
+ <li><p class="left">左メニュー</p>
39
+ <div class="left_box">
40
+ <p>あいうえお</p>
41
+ <ul>
42
+ <li>メニュー</li>
43
+ <li>メニュー</li>
44
+ <li>メニュー</li>
45
+ <li>メニュー</li>
46
+ </ul>
47
+ </div>
48
+ </li>
49
+ <li><p class="right">右メニュー</p>
50
+ <div class="right_box">
51
+ <p>かきくけこ</p>
52
+ <ul>
53
+ <li>メニュー</li>
54
+ <li>メニュー</li>
55
+ </ul>
56
+ </div>
57
+ </li>
58
+ </ul>
59
+ ```
34
60
 
61
+
35
62
  基礎的な事で大変申し訳ありませんが
36
63
  よろしくお願い致します。