css锚div到页脚 [英] css anchor div to foot of page

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

问题描述

我可能很快把我的头从墙上弹开,我不能相信那些蠢的东西,这完全打败了我...因此我转向你,Stack Overflow ...为了指导和启迪。

I may bounce my head off the wall shortly, I can't believe that something as stupid as this has utterly defeated me ... therefore I turn to you, Stack Overflow ... for guidance and enlightenment.

问题:在页面底部坐标为div,宽度为100%包装器。

建议的解决方案: http:// ryanfait.com/sticky-footer/

Problem: Sit div at foot of page, 100% width, outside of any sort of wrapper.
Proposed Solution: http://ryanfait.com/sticky-footer/

实施内容: http://www.weleasewodewick.com/redesign/index_content.html
没有内容的实现: http://www.weleasewodewick.com/redesign/index.html

内容 - >好,工作得很好

无内容=坏,页脚位于视口下方的页脚高度。

with content -> Good, works nicely
no content = bad, footer sits exactly height of footer below the viewport.

我真的很感激你的意见,这是完全困扰我过去一小时。我完全期望某种形式的嘲笑:)

I really would appreciate your input into this, it's completely vexed me for the past hour. I wholly expect some form of ridicule :)

说明:页脚应附加到底部的视口,如果没有足够的内容填充页面。

Clarification: Footer should be attached to bottom of the viewport if there is not enough content to fill the page. It should move down beyond the bottom of the viewport if there is sufficient amount of content.

感谢!

Foxed

Thanks!
Foxed

推荐答案

我认为这可能是你要找的:

I think this is probably what you are looking for:

http://fortysevenmedia.com/blog/archives/making_your_footer_stay_put_with_css/

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

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