Let’s start with the introduction of 3 aspects:
1, scale(x,y) Scale the element
transform:scale(2,2.5);
The default value is 1, and the base point is also at the center of the element. The base point can be changed by transform-origin
transform:scaleX(2);
The base point is also at the center of the element. The base point can be changed through transform-origin.
transform:scaleY(2);
compatibility writing method
:
Css code
.test{
-moz-transform:scale(2,2);