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

Alternative to zoom under FF unit em_javascript skills

WBOY
Release: 2016-05-16 19:01:52
Original
1159 people have browsed it

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 ]
Related labels:
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