这是网站 link .页脚是 Bootstrap 的 .well
。它有一些默认的 margin-bottom
你可以通过 inspect element 选项看到它。现在我已经尝试了我所知道的一切来删除边距底部(除了编辑原始的 Bootstrap 文件,我认为我不需要这样做)。例如:
footer.well { margin-bottom: 0px !important; }
我也试过做内联 css 但没有用。谁能帮帮我?
注意:如果我使用检查元素工具移除边距,它会给出我想要的准确结果。
最佳答案
其中一个父 div 具有相对位置和“top: -30px;”已定义,如果您删除所有命令
这是一行:
<div style="position: relative; top: -30px;" class="nav_wrapper padding">
只需将其重新定义为 top: 0;你有它。其余填充是页脚实际填充,您可以使用以下方法删除它:
footer.well { margin-bottom: 0px !important; }
关于html - bootstrap .well 中不需要的边距底部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24991022/