Wordpress - 页脚直到页面底部 [英] Wordpress - footer until bottom of page

查看:37
本文介绍了Wordpress - 页脚直到页面底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的所有页面中,页面都停在页面的一半.我希望它自然地流动到我的屏幕尺寸的 100%.我找到了这篇文章,但似乎找不到让它为我工作.有人可以帮我看看吗?(我总是尝试使用 Chrome>Inspect 元素)

In all my pages the page stops half way the page. I would like it to flow naturally to 100% of my screensize. I found this article but can't seem to get it to work for me. Could anyone help me out and perhaps have a look? (I always try using Chrome>Inspect element)

如果我将主容器设置为 min-height 100%,它将达到页面的全长,除了我的页脚显示在其下方.

If I set the main-container to min-height 100% it reaches the full length of the page, except my footer is displayed beneath this.

关于主页

推荐答案

您需要的是粘性页脚.像这样的http://jsfiddle.net/wWBPJ/1/

What your looking for is a sticky footer. Something like this http://jsfiddle.net/wWBPJ/1/

这个想法是底部边距是页脚高度的负值

The idea is that the bottom margin is the negative value of the footers height

这篇关于Wordpress - 页脚直到页面底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆