--- order: 5 title: zh-CN: 对齐 en-US: Alignment --- ## zh-CN 子元素垂直对齐。 ## en-US Child elements vertically aligned. ```tsx import { Col, Divider, Row } from 'antd'; import React from 'react'; const DemoBox: React.FC<{ children: React.ReactNode; value: number }> = props => (

{props.children}

); const App: React.FC = () => ( <> Align Top col-4 col-4 col-4 col-4 Align Middle col-4 col-4 col-4 col-4 Align Bottom col-4 col-4 col-4 col-4 ); export default App; ``` ```css #components-grid-demo-flex-align [class~='ant-row'] { background: rgba(128, 128, 128, 0.08); } ```