質問編集履歴

1

コードの追記を実施しました。

2019/09/16 02:23

投稿

konchi_.
konchi_.

スコア4

test CHANGED
File without changes
test CHANGED
@@ -41,3 +41,91 @@
41
41
 
42
42
 
43
43
  ![イメージ説明](4a06b9ee24ccd2557901b497f7cf466e.png)
44
+
45
+
46
+
47
+ ### ソース
48
+
49
+
50
+
51
+ Lhankor_Mhy様よりアドバイス頂きましたので追記させていただきます。ご指摘ありがとうございました。
52
+
53
+ htmlにはcssで指定した.mean-container .mean-bar のクラス指定箇所はありません。
54
+
55
+
56
+
57
+ ```css
58
+
59
+ .mean-container .mean-bar {/*----ナビの100%の枠--*/
60
+
61
+ float: left;
62
+
63
+ width: 100%;
64
+
65
+ padding: 4px 0;
66
+
67
+ min-height: 42px;
68
+
69
+ z-index: 9999;
70
+
71
+ position: absolute;/*--position: relative; へ変更すると画面ごと下がるメニューになります-*/
72
+
73
+ position: fixed;
74
+
75
+ overflow-y: auto;/*--ナビ内スクロールの記述①--*/
76
+
77
+ /*--height: 100%; ナビ内スクロールを実現させる為に必要だが、実装するとページ内のボタンがおせなくなる2019.913--*/
78
+
79
+ ```
80
+
81
+
82
+
83
+ jquery.meanmenu.js内にmean-container と記載があるのですがほぼ初めてjsに触れたので
84
+
85
+ 内容がほとんどわからず困っております・・・。長文記載となり申し訳ございません
86
+
87
+ ```java
88
+
89
+
90
+
91
+ // re-instate original nav (and call this on window.width functions)
92
+
93
+ var meanOriginal = function() {
94
+
95
+ jQuery('.mean-bar,.mean-push').remove();
96
+
97
+ jQuery(meanContainer).removeClass("mean-container");
98
+
99
+ jQuery(meanMenu).css('display', meanDisplay);
100
+
101
+ menuOn = false;
102
+
103
+ meanMenuExist = false;
104
+
105
+ jQuery(removeElements).removeClass('mean-remove');
106
+
107
+ };
108
+
109
+
110
+
111
+ // navigation reveal
112
+
113
+ var showMeanMenu = function() {
114
+
115
+ var meanStyles = "background:"+meanRevealColour+";color:"+meanRevealColour+";"+meanRevealPos;
116
+
117
+ if (currentWidth <= meanScreenWidth) {
118
+
119
+ jQuery(removeElements).addClass('mean-remove');
120
+
121
+ meanMenuExist = true;
122
+
123
+ // add class to body so we don't need to worry about media queries here, all CSS is wrapped in '.mean-container'
124
+
125
+ jQuery(meanContainer).addClass("mean-container");
126
+
127
+ jQuery('.mean-container').prepend('<div class="mean-bar"><a href="#nav" class="meanmenu-reveal" style="'+meanStyles+'">Show Navigation</a><nav class="mean-nav"></nav></div>');
128
+
129
+
130
+
131
+ ```