twitter-bootstrap Twitter Bootstrap 2.3.2 上的粘性页脚

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13249256/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 15:39:31  来源:igfitidea点击:

Sticky footer on Twitter Bootstrap 2.3.2

csstwitter-bootstrapresponsive-designsticky-footertwitter-bootstrap-2

提问by

I want my bootstrap page to have it's footer always on the bottom of the page, and the solutions I've found aren't working for me. None of the solutions proposed here

我希望我的引导页面的页脚始终位于页面底部,而我找到的解决方案对我不起作用。这里没有提出任何解决方案

Flushing footer to bottom of the page, twitter bootstrapisn't working for me. As the height of the pages vary, it's tricky, right? No matter what I try, there's always whitespace below the footer. And as I don't want a fixed footer, how I'm supposed to achieve this, as my bootstrap site is responsive?

将页脚刷新到页面底部,twitter bootstrap对我不起作用。由于页面的高度不同,这很棘手,对吧?无论我尝试什么,页脚下方总是有空白。因为我不想要一个固定的页脚,我应该如何实现这一点,因为我的引导站点是响应式的?

采纳答案by

回答by cfx

Consider this: https://gist.github.com/aalaap/3066704

考虑一下:https: //gist.github.com/aalaap/3066704

I had to make a few adjustments to get it working with Bootstrap but it works well and does not require a fixed height footer, which is responsive.

我不得不做一些调整才能让它与 Bootstrap 一起工作,但它运行良好,不需要固定高度的页脚,这是响应式的。