html - bootstrap .well 中不需要的边距底部

标签 html css twitter-bootstrap footer

这是网站 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/

相关文章:

javascript - 当用户在 JavaScript 中上传无效文件时清除输入文件字段

django - 使用 Django 和 html5 标签播放视频

HTML5框架替代

css - 如何结合导航栏和分页?

jquery - bootstrap 3 已导入但仍然是 2.3 版本样式按钮 - 为什么?

html - 如何将图片和文字并排放置在页面中央?

html - Firefox 不显示来自缓存的图像仅替代文本

html - 如何删除出现在我网站右侧的白边?

javascript - 无法使用 jQuery 均衡 anchor 高度

html - 如何对齐 Bootstrap 导航栏中的元素?