diff --git a/utilities/positioning.md b/utilities/positioning.md index dc707a0d..2bc37506 100644 --- a/utilities/positioning.md +++ b/utilities/positioning.md @@ -1,8 +1,8 @@ -# Positioning +# Positioning {#positioning} -## Order +## Order {#order} -Utilities for controlling the order of flex and grid items. +用于控制 flex 和 grid 子条目顺序的工具类。 -## Justify Content +## Justify Content {#justify-content} -Utilities for controlling how flex and grid items are positioned along a container's main axis. +用于控制 flex 和 grid 子条目如何沿容器主轴定位的工具类。 -## Justify Items +## Justify Items {#justify-items} -Utilities for controlling how grid items are aligned along their inline axis. +用于控制网格子条目沿其行内轴对齐的工具类。 -## Justify Self +## Justify Self {#justify-self} -Utilities for controlling how an individual grid item is aligned along its inline axis. +用于控制单个网格子条目沿其行内轴对齐的工具类。 -## Align Content +## Align Content {#align-content} -Utilities for controlling how rows are positioned in multi-row flex and grid containers. +用于控制行在多行 flex 和 grid 容器中定位的工具类。 -## Align Items +## Align Items {#align-items} -Utilities for controlling how flex and grid items are positioned along a container's cross axis. +用于控制 flex 和 grid 子条目沿容器的交叉轴定位的工具类。 -## Align Self +## Align Self {#align-self} -Utilities for controlling how an individual flex or grid item is positioned along its container's cross axis. +用于控制单个 flex 和 grid 子条目沿其容器的交叉轴定位的工具类。 -## Place Content +## Place Content {#place-content} -Utilities for controlling how content is justified and aligned at the same time. +用于控制内容同时有序对齐的工具类。 -## Place Items +## Place Items {#place-items} -Utilities for controlling how items are justified and aligned at the same time. +用于控制子条目同时有序对齐的工具类。 -## Place Self +## Place Self {#place-self} -Utilities for controlling how an individual item is justified and aligned at the same time. +用于控制单个条目同时有序对齐的工具类。 -## Position +## Position {#position} -Utilities for controlling how an element is positioned in the DOM. +用于控制元素在 DOM 中如何定位的工具类。 -## Top / Right / Bottom / Left +## Top / Right / Bottom / Left {#top-right-bottom-left} -Utilities for controlling the placement of positioned elements. +用于控制定位元素位置的工具类。 -### Inset +### Inset {#inset} -### Inset Y +### Inset Y {#inset-y} -### Inset X +### Inset X {#inset-x} -### Top +### Top {#top} -### Right +### Right {#right} -### Bottom +### Bottom {#bottom} -### Left +### Left {#left} -## Floats +## Floats {#floats} -Utilities for controlling the wrapping of content around an element. +用于控制元素浮动的工具类。 -## Clear +## Clear {#clear} -Utilities for controlling the wrapping of content around an element. +用于控制元素取消浮动的工具类。 -## Isolation +## Isolation {#isolation} -Utilities for controlling whether an element should explicitly create a new stacking context. These utilities are especially helpful when used in conjunction with [mix-blend-mode](/utilities/effects#mix-blend-mode) and [z-index](#z-index). +用于控制元素是否显式创建新上下文的工具类。这些工具类与 [mix-blend-mode](/utilities/effects#mix-blend-mode) 和 [z-index](#z-index) 结合使用时特别有用。 -## Object Fit +## Object Fit {#object-fit} -Utilities for controlling how a replaced element's content should be resized. +用于控制替换元素内容如何调整大小的工具类。 -## Object Position +## Object Position {#object-position} -Utilities for controlling how a replaced element's content should be positioned within its container. +用于控制替换元素在其容器中如何定位的工具类。 -## Z-Index +## Z-Index {#z-index} -Utilities for controlling the stack order of an element. +用于控制元素在堆栈顺序的工具类。