简体   繁体   English

为什么网站的页脚停留在页面顶部?

[英]why is my site's footer stuck to the top of my page?

This is a Wordpresss site and I believe this is a theme issue that is causing the footer to stick to the top of the page. 这是一个Wordpresss网站,我认为这是一个主题问题,导致页脚一直停留在页面顶部。

I can't figure out a site-wide fix for the issue. 我无法解决该问题的整个网站范围。 I have used: 我用过:

.l-footer {
position:absolute;
bottom:0;
}

and it just makes the footer disappear entirely. 它只会使页脚完全消失。

Try position:relative , position:fixed , and display:block also. 尝试position:relativeposition:fixeddisplay:block Once you have the right one, take a note on how they work and also see the changes that they made. 一旦找到合适的,记下它们的工作原理,并查看它们所做的更改。

EDIT: 编辑:

Try this: 尝试这个:

.somefooter {
    display:inline-block;
    overflow: hidden;
}

Through I think one of them should do it, place them in your footer tag. 通过我认为其中一个应该执行此操作,将其放置在页脚标记中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM