css zoom zoom attribute

The zoom property is used to set or retrieve the zoom ratio of an object

grammar:

zoom : normal | number
normal: Use the actual size of the object.
number: Percent or unsigned floating point real number. An unsigned floating point real value of 1.0 or a percentage of 100% is equivalent to the normal value of this attribute.

application

Zooming in and out of pictures through the mouse wheel
is achieved by obtaining the magnification or reduction multiple through the wheelDelta property of the Event object (used to retrieve the value of the mouse wheel key), and then dynamically modifying the zoom property of the style object.

compatibility

Zoom is a special attribute of the IE browser. Previously, some other browsers such as Firefox and Google did not support it, and it has not passed the W3C standard. Now, however, this attribute has begun to be standardized and has appeared in the draft of CSS3
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_42215897/article/details/128283471