This time for everyone to bring the CSS in what length units, using the length of the CSS in the unit notes what, the following is the actual case, together to see.
1. There are two types of length units: relative and absolute. Relative length units Specify a unit relative to the other length properties. Style sheets with relative units are easier to scale based on different output environments
Relative units are:
EM: ' font-size ' for related fonts
Ex: ' x-height ' for related fonts
The ' em ' unit equals the computed value of the ' font-size ' property of the element that applies the rule. An exception is when ' em ' appears in the value of the ' Font-size ' property itself, in which case the font size of the parent element is referenced. It can be used in vertical or horizontal measurements.
Believe that you have read the case of this article you have mastered the method, more exciting please pay attention to the PHP Chinese network other related articles!
Related reading:
Using react to complete a picture carousel component
Write a Sanmao quote in
How to write a personal collection with <a> tags in html
HTML inline style improvements to "Sanmao Classic quotes"