Home  >  Article  >  Web Front-end  >  css unit introductory tutorial

css unit introductory tutorial

零下一度
零下一度Original
2017-06-13 11:41:141981browse

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: