What are the ways to implement this layout?

when a content, and a footer,content+footer are greater than the screen height, the footer follows the content, and when the content+footer is less than the screen height, the footer is at the bottom

.
Mar.19,2021

now has the viewport size unit of vh. Set the parent element of content and footer to min-height: 100vh position of Footer to set relative,bottom to 0


can also be achieved with JS, first get content and footer these two elements, and then through window.innerheight to compare the two high sum, and then father-child absolute positioning.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf34b6-31e54.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf34b6-31e54.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?