From 310fd066e91f454b990372ffa30e803cc8120975 Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 12:56:40 +0100 Subject: unslug zh-cn: move --- files/zh-cn/glossary/main_axis/index.html | 50 +++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 files/zh-cn/glossary/main_axis/index.html (limited to 'files/zh-cn/glossary/main_axis/index.html') diff --git a/files/zh-cn/glossary/main_axis/index.html b/files/zh-cn/glossary/main_axis/index.html new file mode 100644 index 0000000000..c3c8b91de1 --- /dev/null +++ b/files/zh-cn/glossary/main_axis/index.html @@ -0,0 +1,50 @@ +--- +title: 主轴 +slug: Glossary/主轴 +translation_of: Glossary/Main_Axis +--- +

主轴是由弹性容器 {{glossary("flexbox")}} 中弹性方向 {{cssxref("flex-direction")}} 属性所定义的的。弹性方向 flex-direction  有4个可能的值,分别是:

+ + + +

选择行 row 或者 row-reverse 反向行,那么主轴方向就会沿着行的走向。

+ +

In this image the flex-direction is row which forms the main axis

+ +

选择列 column 或者反向列 column-reverse ,那么主轴就会从上至下沿着块的走向。

+ +

+ +

在主轴上,你可以用 flex 属性来增加可用空间,从而控制弹性元素的尺寸,你还可以用 justify-content 属性来控制元素周围的空间、间距。

+ +

学习更多

+ +

属性参考

+ +
+ +
+ +

拓展阅读

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