Home >Web Front-end >JS Tutorial >Alternative to zoom under FF unit em_javascript skills
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.