Home > Web Front-end > CSS Tutorial > css unit summary

css unit summary

高洛峰
Release: 2017-02-09 16:43:15
Original
1796 people have browsed it

Font-size of body:14px Font-size of the second-generation child element of body:

em: 1.2em=1.2*1.2*14px

rem:1.2rem=1.2*14px

Viewport height: 1000px Viewport width: 500px

vh:1vh=1000px/100

vw:1vw=500px/100

##vmin:vmin=500px/100

vmax:vmax=1000px

##ch:Unit usually Defined as the width of the number 0

ex: Defined as the height of the lowercase x letter of the current font or 1/2 of 1em


For more articles related to css unit summary, please pay attention to the PHP Chinese website!

Related labels:
css
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template