From 9bf6693b2edd5281c1577856895c55653a41dc01 Mon Sep 17 00:00:00 2001 From: MDN Date: Sat, 19 Mar 2022 00:13:08 +0000 Subject: [CRON] sync translated content --- .../css/transform-function/translatey()/index.html | 115 --------------------- 1 file changed, 115 deletions(-) delete mode 100644 files/zh-cn/web/css/transform-function/translatey()/index.html (limited to 'files/zh-cn/web/css/transform-function/translatey()') diff --git a/files/zh-cn/web/css/transform-function/translatey()/index.html b/files/zh-cn/web/css/transform-function/translatey()/index.html deleted file mode 100644 index cbce9c8b14..0000000000 --- a/files/zh-cn/web/css/transform-function/translatey()/index.html +++ /dev/null @@ -1,115 +0,0 @@ ---- -title: translateY() -slug: Web/CSS/transform-function/translateY() -translation_of: Web/CSS/transform-function/translateY() ---- -
{{CSSRef}}
- -

translateY() 在页面垂直移动元素,结果是 CSS 数据类型 {{cssxref("<transform-function>")}}。

- -

- -
-

注意: translateY(ty) 对应 translate(0, ty)translate3d(0, ty, 0)

-
- -

语法

- -
/* <length-percentage> values */
-transform: translateY(200px);
-transform: translateY(50%);
- -

- -
-
{{cssxref("<length>")}} 或 {{cssxref("<percentage>")}} 表示变换向量的纵坐标。百分比指的是盒子高度,盒子由属性 {{cssxref("transform-box")}} 定义。
-
- - - - - - - - - - - - - - - - - - - - - -
笛卡尔坐标 ℝ2 -

在ℝℙ2上的同类坐标

-
-

在ℝ3上的笛卡尔坐标

-
-

在ℝℙ3同类坐标

-
-

在ℝ2 上的转换不会是线性变换但是并不能代表在笛卡尔坐标系统中使用矩阵

-
10001t001 10001t001 1000010t00100001
[1 0 0 1 0 t]
- -

语法

- -
translateY({{cssxref("<length-percentage>")}})
- -

示例

- -

HTML

- -
<div>Static</div>
-<div class="moved">Moved</div>
-<div>Static</div>
- -

CSS

- -
div {
-  width: 60px;
-  height: 60px;
-  background-color: skyblue;
-}
-
-.moved {
-  transform: translateY(10px);
-  background-color: pink;
-}
- -

结果

- -

{{EmbedLiveSample("Examples", 250, 250)}}

- -

规范

- - - - - - - - - - - - - - - - -
规范状态注释
{{SpecName("CSS3 Transforms", "#funcdef-transform-translatey", "translateY()")}}{{Spec2("CSS3 Transforms")}}Initial definition
- -

浏览器兼容性

- -

请查看 <transform-function>

- -

了解更多

- - -- cgit v1.2.3-54-g00ecf