The scroll bar appears when the calc calculates the percentage height overflow.

this code height: calc (100%-60px); calculate the height, but you can"t scroll after the content overflows, unless you change 100% to an exact px height, but this is what I want to do in order to use different terminals.

Feb.28,2021

 <style>
            html, body {
                margin: 0;
                padding: 0;
                height: 100%;
            }
            * {
                box-sizing: border-box;
            }
            .top {
                height: 60px;
                border: 1px solid -sharpccc;
            }
            .wrap {
                height: calc(100% - 60px);
            }
            .box {
                height: 1000px;
                border: 1px solid -sharpddd;
            }
        </style>
        
        <div class="top"></div>
        <div class="wrap">
            <div class="box"></div>
        </div>

personal test, there is a scroll bar

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