html - 当我在移动设备中打开菜单时,元素页脚不使用 Bootstrap 类向下

标签 html css twitter-bootstrap

在移动模式下,当我打开菜单时出现问题,因为这与移动轮播图像的按钮以及页脚发生冲突

inserir a descrição da imagem aqui

CSS

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: auto;
  background-color: #0275d8;
}

já tentei usar z-index: -1;

<div class="footer">
      <div class="container">
      <hr>
          <div id="aviso">  
            <div id= "posicaoaviso">
                <span id="fecharaviso" >&times;</span>
                <center><p><strong>Uso de cookies:</strong> Este site utiliza cookies para ajudar a disponibilizar os respetivos serviços e analisar o tráfego.<br>As informações sobre a sua utilização deste site são partilhadas com terceiros.<br>Ao utilizar este site, concorda que o mesmo utilize cookies.</p></center>
            </div>
        </div>
     </div>

点击here查看网站。

或者问题出在foot or menu or carosel

最佳答案

应用此 CSS:

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;
}

来源:Bootstrap example .

附言:葡萄牙之声 :)

关于html - 当我在移动设备中打开菜单时,元素页脚不使用 Bootstrap 类向下,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39069712/

相关文章:

jquery - Bootstrap 选项卡 - 事件类在页面加载时不起作用

jquery - 使用 jQuery 操作 html

带 POST 的 HTML 按钮

html - 如何将单元格拆分为列,使它们的宽度与其下方的列相同

html - 导航栏不会显示在网页的中心

CSS:在实际范围内选择第一个 child

javascript - 在新窗口中显示隐藏的 div 作为内容

html - 如何使表单内联标签不内联?

javascript - 如何让菜单栏滚动时阴影变大?

javascript - &lt;textarea&gt; 将发送哪个值,为什么?