Home > Article > Web Front-end > css unit introductory tutorial
Hey, let me tell you how to use some mobile CSS units. px is definitely not possible. Mobile phones have so many sizes, so how much @media should be written. There are two most commonly used units: 1. remrem is set relative to the size of the root element. The root element in the web page refers to html. We can control the size of rem by setting the font size of html. For example: