From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../transform-function/perspective()/index.html | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 files/zh-cn/web/css/transform-function/perspective()/index.html (limited to 'files/zh-cn/web/css/transform-function/perspective()') diff --git a/files/zh-cn/web/css/transform-function/perspective()/index.html b/files/zh-cn/web/css/transform-function/perspective()/index.html new file mode 100644 index 0000000000..833023d9c3 --- /dev/null +++ b/files/zh-cn/web/css/transform-function/perspective()/index.html @@ -0,0 +1,46 @@ +--- +title: perspective() +slug: Web/CSS/transform-function/perspective() +translation_of: Web/CSS/transform-function/perspective() +--- +
{{CSSRef}}
+ +
透视函数定义了到z=0的坐标轴,使用者能够得到3D定位元素的透视,每个3D元素在Z轴的位置大于零意味着离使用者更近,因此会变得更大,同理当元素Z周小于零时会变得ge
+ +

T更小,变化的幅度决定于属性值的变化大小 

+ +

语法

+ +
perspective(l)
+
+ +

参数

+ +
+
l
+
这个{{cssxref("<length>")}} 得到的是距离0坐标的距离. 被用作提供一个透视渐变属性给某个元素. 如果这个值是0或者不合法的值,将不会产生透视的变化.
+
+ + + + + + + + + + + + + + + + + +
Cartesian coordinates on ℝ2Homogeneous coordinates on ℝℙ2Cartesian coordinates on ℝ3Homogeneous coordinates on ℝℙ3
+

这个属性变化提供了一个3D空间,并且不会变成平面类型

+
A perspective is not a linear transform in ℝ3 and cannot be represented using a matrix in the Cartesian coordinates system. 100001000010001/d1
+ +

Examples

+ +

TBD

-- cgit v1.2.3-54-g00ecf