什么是粘性页脚? [英] What is a sticky footer?

查看:105
本文介绍了什么是粘性页脚?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题是一个新手,但是我无法理解普通页脚和粘性页脚之间的区别。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆