这个CSS页脚如何保持在底部

发布于 2024-10-18 14:33:39 字数 236 浏览 4 评论 0原文

可能的重复:
怎么做您可以将页脚保留在网页底部吗?

当内容很短时,这个网站如何将页脚保持在底部?

Possible Duplicate:
How do you get the footer to stay at the bottom of a Web page?

how does this site keep the footer at the bottom when the content is short?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

很糊涂小朋友 2024-10-25 14:33:39

您可以使用粘性页脚解决方案,例如 http://ryanfait.com/sticky-footer/ 或 < a href="http://www.cssstickyfooter.com/" rel="nofollow">http://www.cssstickyfooter.com/

You can use a sticky footer solution like http://ryanfait.com/sticky-footer/ or http://www.cssstickyfooter.com/

无人问我粥可暖 2024-10-25 14:33:39
 #footer{
    position:absolute;
    bottom:0;
 }
 #footer{
    position:absolute;
    bottom:0;
 }
晚雾 2024-10-25 14:33:39

首先,在将男人的屁股放在屏幕上之前发出警告。其次,使用萤火虫。第三,它的所谓位置:绝对。

First of all, warn before putting a man's butt on the screen. Second, use firebug. Third, its called position: absolute.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文