--- order: 3 title: zh-CN: 对齐 en-US: Align --- ## zh-CN 设置对齐模式。 ## en-US Config item align. ```tsx import { Button, Space } from 'antd'; import React from 'react'; const App: React.FC = () => (
center Block
start Block
end Block
baseline Block
); export default App; ``` ```css .space-align-container { display: flex; flex-wrap: wrap; align-items: flex-start; } .space-align-block { flex: none; margin: 8px 4px; padding: 4px; border: 1px solid #40a9ff; } .space-align-block .mock-block { display: inline-block; padding: 32px 8px 16px; background: rgba(150, 150, 150, 0.2); } ```