The key to note here is the height of the footer is not going to be fixed, but will vary with its content.
When I say “sticky footer,” I use it in what I understand to be the common definition of “a footer that is never higher than the bottom of the viewport, but if there is enough content, it will be hidden until the user scrolls down far enough to see it.”
Note also I don’t need to support legacy browsers. If CSS display: table
& related properties help here, they are fair game.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…