什么是粘性页脚? [英] What is a sticky footer?
问题描述
这个问题是一个新手,但是我无法理解普通页脚和粘性页脚之间的区别。
This question is a total noob one, but I can't get the difference between a normal footer and a sticky footer.
推荐答案
来自 CSS技巧:
粘性页脚的目的是粘贴到
浏览器窗口的底部。但并非总是如此,如果
页面上有足够的内容将页脚向下推,它仍然会这样做。但是,如果页面上的内容
较短,则粘性页脚仍会悬停在浏览器窗口
的底部。
The purpose of a sticky footer is that it "sticks" to the bottom of the browser window. But not always, if there is enough content on the page to push the footer lower, it still does that. But if the content on the page is short, a sticky footer will still hang to the bottom of the browser window.
以下是粘性页脚的清晰概念: https: //css-tricks.com/couple-takes-sticky-footer/
和
http://css-tricks.com/sticky-footer/
Here is a clear idea of what a Sticky footer is: https://css-tricks.com/couple-takes-sticky-footer/ And http://css-tricks.com/sticky-footer/
还有一个示例:> https://getbootstrap.com/docs/4.0/examples/sticky-footer/
这篇关于什么是粘性页脚?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!