Css 简明教程
CSS - 2D Transforms
CSS 提供了一组可让你在二维空间中变换和调整元素的属性。允许你变换元素的属性包括平移、旋转、缩放、倾斜等。
CSS provides a set of properties that allow you to transform and adjust the elements in the two-dimensional space. The properties that let you transform the elements include translations, rotations, scaling, skewing, etc.
下表列出了所有用于在二维空间中变换元素的各种属性:
The following table lists all the various properties that are used transform the elements in the two-dimensional space:
Property |
Description |
Rotates an element by a specified angle. |
|
Scales by an element by a specified factor. |
|
Transforms an element, such as rotates, scales, skews or translates. |
|
Defines the layout box for transformation. |
|
Sets the origin for the transformation of an element. |
|
Moves an element from its current position. |
|
Defines the transformation of an element based on six matrix values. |
|
Rotates an element around a fixed point in two-dimensional space. |
|
Rotates an element around the horizontal axis in two-dimensional space. |
|
Rotates an element around the vertical axis in two-dimensional space. |
|
Scales an element up or down in two-dimensional space. |
|
Scales an element up or down horizontally. |
|
Scales an element up or down vertically. |
|
Skews an element in two-dimensional space. |
|
Skews an element in the horizontal direction. |
|
Skews an element in the vertical direction. |
|
Translates an element in two-dimensional space. |
|
Translates an element horizontally. |
|
Translates an element vertically. |