Webpage scaling and webpage scaling shortcut
It is very practical to zoom in or out a webpage by means of double-finger dragging.
In fact, the zoom function can be easily implemented on the computer.
I. Scaling
1. in IE and Chrome browsers, you only need to set the scaling attribute in the style of the body element:
style="zoom:1.5;"
The zoom parameter is a magnification.
2. In Firefox, the writing method is slightly different.
-moz-transform:scale(1.5);-moz-transform-origin:top left;
The scale parameter is a magnification.
You can also write it as follows:
<body style="zoom:1.5;-moz-transform:scale(1.5);-moz-transform-origin:top left;">
Ii. Practical JavaScript slider Control for scaling Control
Use the slider of jQuery easyUI to control Scaling
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The effect after completion is as follows: