How does flex fix the head and scroll the content area?

question: similar to the functions that can be achieved by using position:fixed on the PC side.


  

I usually give the head a fixed height, and then the content page gives height: calc (100%-head height); overflow-y: scoll;. So why use flex to achieve this?

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-1b2c216-2bad3.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-1b2c216-2bad3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?