html - 页脚和页面底部之间的空间

标签 html css

我查看了该主题的其他问题,但答案对我没有帮助。 这有点难以解释,但我会尝试。所以我有一个页脚:

#fußzeile{
    width: 100%;
    background-color: #e9e8e5;
    padding-top: 14px;
    padding-bottom: 14px;
    bottom: 0;
    padding-left: 24px;
    height: 36px;
    text-align: center;
}

我试过 overflow: hidden, height: 100% 等等。 我使用 margin-top 将包装器向下推,然后它就可以工作了,但是如果我最小化网站,差距又回来了..position:absolute/相对也不起作用..

最佳答案

尝试在您的 CSS 中使用以下内容:

#fußzeile{
    position: fixed;
    bottom: 0px;
}

关于html - 页脚和页面底部之间的空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19315067/

相关文章:

java - 想要在HTML onclick(jsp)中调用Javabean方法

html - 在电子邮件模板内部包含外部样式表

javascript - 获得对 CSSMediaRule 的可读访问权限

jquery - 宽度自动不更新与挖空文本绑定(bind)

css - 粗体样式选项

html - CSS 固定 + 流体在单个包装器中

html - 从 SVG 三 Angular 形剪辑平滑过渡到圆形

html - 设置表格行的背景颜色

javascript - 未捕获的 TypeError : document. getElementById 不是函数

javascript - 仅对阿拉伯文本应用样式