Home  >  Article  >  Web Front-end  >  Alternative to zoom under FF unit em_javascript skills

Alternative to zoom under FF unit em_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:01:521109browse

The first is the calculation method of em. When this element and the parent element do not specify a font-size in em or percentage, 1em is strictly equal to 16px. When this element and the parent element specify a font-size in em or percentage, -size, multiply the product of all superior fontSizes on the basis of 16px.

Due to this property, you can set line-height instead of zoom to achieve the desired effect.


[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute ]
Statement:
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