You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
751 B

---
order: 4
title: 栅格卡片
---
在系统概览页面常常和栅格进行配合。
````jsx
import { Card, Col, Row } from 'antd';
ReactDOM.render(
<div style={{ background: '#ECECEC', padding: '30px' }}>
<Row>
<Col span="8">
<Card title="卡片标题" bordered={false}>卡片的内容</Card>
</Col>
<Col span="8">
<Card title="卡片标题" bordered={false}>卡片的内容</Card>
</Col>
<Col span="8">
<Card title="卡片标题" bordered={false}>卡片的内容</Card>
</Col>
</Row>
</div>
, mountNode);
````
````css
/* 增加 16px 栅格间距 */
.code-box-demo .row {
margin-left: -8px;
margin-right: -8px;
}
.code-box-demo .row > div {
padding: 0 8px;
}
````