Javascript can';使用mmenu时不要粘贴页脚

Javascript can';使用mmenu时不要粘贴页脚,javascript,jquery,css,mmenu,Javascript,Jquery,Css,Mmenu,我有个问题。当对站点的侧页进行编码时,我不能将页脚绑定到站点的底层。我使用bootsrap类。尝试使用此类代码时: html { position: relative; min-height: 100%; } body { /* Margin bottom by footer height */ margin-bottom: 60px; } #footer { position: absolute; bottom: 0; width: 100%; /* Set t

我有个问题。当对站点的侧页进行编码时,我不能将页脚绑定到站点的底层。我使用bootsrap类。尝试使用此类代码时:

html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 60px;
  background-color: #f5f5f5;
}
页脚要么保持原位,要么关闭内容,靠近导航栏。 如何解决这个问题

以前

使用代码后


另外,我为糟糕的英语表示歉意。

高度
100%
不能像你想象的那样工作。在本例中,您正在查找
vh
单位。我也会将它们应用于
body
,而不是
html

*{框大小:边框框;}
身体{
/*按页脚高度排列的页边距底部*/
保证金:0;
填充:0;
最小高度:100vh;
位置:相对位置;
}
页脚{
位置:绝对位置;
宽度:100%;
/*在此处设置页脚的固定高度*/
高度:60px;
背景色:#F5;
底部:0;
}

内容
页脚

我试过了。但一切都是一样的。我有这样一个网站结构: