CSS浮动页脚 [英] CSS Floating Footer
本文介绍了CSS浮动页脚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想制作一个停留在可见窗口底部的页脚,除非它在缩小窗口大小时与内容相抵触。
I want to make a footer that stays at the bottom of the viewable window UNLESS it butts up against the content when you resize the window smaller.
我试过。 ..
bottom:0;
position:absolute;
I tried... bottom:0; position:absolute; ...but the footer gets in the way when the window is smaller.
推荐答案
我相信这会做您想要什么: CSS布局:100%高度,包括页眉和页脚。我在网站上使用它,根据现有布局的复杂性,它可能很难实现。
I believe this will do what you want: CSS layout: 100% height with header and footer. I've used it on a site and it can be tricky to implement depending on the complexity of your existing layout.
这篇关于CSS浮动页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文