How to fit the font size and height of the full-screen page on PC?

problem description

use fullpage to do full-screen scrolling of the site, so the height is fixed, and margin uses percentages in many places. But you can"t use percentages for font size and some width and height. The page made is good on the large and medium-sized screen, but there is something wrong with the small screen. The mobile end can adapt according to the rem benchmark value, but the PC side has not seen any website using rem layout. The design draft is given to a large screen with a width of about 1900, and I don"t want to use media query to change it a little bit until the end. Looking for answers.

Aug.10,2021

the kernel of the rem benchmark is also a percentage, so why can't you use a percentage? In general, fonts in this case can use vh, vw as a unit, but its essence is still a percentage.

Menu