2016-03-31 09:40:55 +08:00
---
order: 4
2016-09-30 14:24:41 +08:00
title:
2019-11-20 11:13:24 +08:00
zh-CN: 排版
en-US: Typesetting
2016-03-31 09:40:55 +08:00
---
2015-06-09 22:19:35 +08:00
2016-08-08 10:40:02 +08:00
## zh-CN
2019-11-20 11:13:24 +08:00
布局基础。
2015-06-09 22:19:35 +08:00
2019-11-20 11:13:24 +08:00
子元素根据不同的值 `start` ,`center`,`end`,`space-between`,`space-around`,分别定义其在父节点里面的排版方式。
2015-06-09 22:19:35 +08:00
2016-08-08 10:40:02 +08:00
## en-US
2019-11-20 11:13:24 +08:00
Child elements depending on the value of the `start` ,`center`, `end` ,`space-between`, `space-around` , which are defined in its parent node typesetting mode.
2016-08-08 10:40:02 +08:00
2019-05-07 14:57:32 +08:00
```jsx
2020-02-26 21:00:43 +08:00
import { Row, Col, Divider } from 'antd';
2015-10-27 23:52:17 +08:00
ReactDOM.render(
2020-02-26 21:00:43 +08:00
< >
< Divider orientation = "left" style = {{ color: ' # 333 ' , fontWeight: ' normal ' } } >
sub-element align left
< / Divider >
2019-11-20 11:13:24 +08:00
< Row justify = "start" >
2016-09-30 14:24:41 +08:00
< Col span = {4} > col-4< / Col >
< Col span = {4} > col-4< / Col >
< Col span = {4} > col-4< / Col >
< Col span = {4} > col-4< / Col >
2015-10-27 23:52:17 +08:00
< / Row >
2015-10-28 20:55:49 +08:00
2020-02-26 21:00:43 +08:00
< Divider orientation = "left" style = {{ color: ' # 333 ' , fontWeight: ' normal ' } } >
sub-element align center
< / Divider >
2019-11-20 11:13:24 +08:00
< Row justify = "center" >
2016-09-30 14:24:41 +08:00
< Col span = {4} > col-4< / Col >
< Col span = {4} > col-4< / Col >
< Col span = {4} > col-4< / Col >
< Col span = {4} > col-4< / Col >
2015-10-27 23:52:17 +08:00
< / Row >
2020-02-26 21:00:43 +08:00
< Divider orientation = "left" style = {{ color: ' # 333 ' , fontWeight: ' normal ' } } >
sub-element align right
< / Divider >
2019-11-20 11:13:24 +08:00
< Row justify = "end" >
2016-09-30 14:24:41 +08:00
< Col span = {4} > col-4< / Col >
< Col span = {4} > col-4< / Col >
< Col span = {4} > col-4< / Col >
< Col span = {4} > col-4< / Col >
2015-10-27 23:52:17 +08:00
< / Row >
2020-02-26 21:00:43 +08:00
< Divider orientation = "left" style = {{ color: ' # 333 ' , fontWeight: ' normal ' } } >
sub-element monospaced arrangement
< / Divider >
2019-11-20 11:13:24 +08:00
< Row justify = "space-between" >
2016-09-30 14:24:41 +08:00
< Col span = {4} > col-4< / Col >
< Col span = {4} > col-4< / Col >
< Col span = {4} > col-4< / Col >
< Col span = {4} > col-4< / Col >
2015-10-27 23:52:17 +08:00
< / Row >
2020-02-26 21:00:43 +08:00
< Divider orientation = "left" style = {{ color: ' # 333 ' , fontWeight: ' normal ' } } >
sub-element align full
< / Divider >
2019-11-20 11:13:24 +08:00
< Row justify = "space-around" >
2016-09-30 14:24:41 +08:00
< Col span = {4} > col-4< / Col >
< Col span = {4} > col-4< / Col >
< Col span = {4} > col-4< / Col >
< Col span = {4} > col-4< / Col >
2015-10-27 23:52:17 +08:00
< / Row >
2020-02-26 21:00:43 +08:00
< />,
2019-05-07 14:57:32 +08:00
mountNode,
2015-11-25 17:35:49 +08:00
);
2019-05-07 14:57:32 +08:00
```
2019-11-20 11:13:24 +08:00
```css
#components-grid-demo-flex [class~='ant-row'] {
2019-12-23 17:16:26 +08:00
background: rgba(128, 128, 128, 0.08);
2019-11-20 11:13:24 +08:00
}
```