CSS将Div移到页面底部 [英] CSS Push Div to bottom of page

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

问题描述

我希望页脚始终位于页面底部,即使内容不会完全推下。如何让它只停留在页面底部?

I want the footer to always be at the bottom of the page even if the content doesn't push it all the way down. How can I make it just stay at the bottom of the page?

推荐答案

 #footer { position: fixed; bottom: 0; }

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

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