One, CSS length value
| em< /td> |
relative to the parent element's font size |
| ex |
height relative to lowercase "x" |
| gd |
Generally used in East Asian typography, this is not related to English |
| rem |
relative to the root element font size |
| VW |
relative to the view Window width: Window width is 100vw |
| vh |
relative to the window height: 100vh |
| vm |
Relative To the width or height of the window, depending on which is smaller |
| ch |
relative to 0 dimensions |
| px |
relative to screen resolution instead of Windows Size: typically 1 dots or 1/72 inches |
| in |
inch, table inch |
| cm |
centimeter, Table cm |
| mm |
millimeter, table mm |
| pt |
1/72 inch |
| pc |
12-point movable, or 1/12-point |
| % |
relative to the parent element. Normally, you define itself or another element through a property |
Second, time, frequency, angle
| Deg |
degrees, Angle |
| Grad |
Grads, Hundred degrees |
| Rad |
radians, radians |
| Turn |
Turns, lap number |
| Ms |
Milliseconds, number of milliseconds |
| S |
seconds, number of seconds |
| Hz |
Hertz, Hertz |
| KHz |
kilohertz, khz |
Viewport-related units VW, VH, VM,CSS/CSS3 length, time, frequency, angle units Daquan