本文介绍了CSS:放置页脚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I'm having a problem that when there is a small amount of content on the page the footer goes up , and when there is a lot of content on the page , the footer is okay because it is in the bottom.
so i written this code in the footer:
position:absolute;bottom:0px;
and now when there is a small amount of content in the page , the footer is okay! but when there is a lot amount of content in the page , the footer is in the middle of the page
how can i solve this problem?
thank you in advance.
解决方案
Footer at bottom:
- Fixed Footer Height:
http://jsfiddle.net/EP6Hn/1/ - Fixed Footer Height & Vertical Alignment Middle:
http://jsfiddle.net/KUEYm/ - Flexible Footer Height:
http://jsfiddle.net/QWb4H/ - Flexible Footer Height & Vertical Alignment Middle:
http://jsfiddle.net/QGFAV/ - Footer at bottom + PNG background stretches to a height of content:
http://jsfiddle.net/EXTyU/
这篇关于CSS:放置页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!