ant-design/components/card/demo/grid-card.md

38 lines
734 B
Markdown
Raw Normal View History

---
order: 6
title:
zh-CN: 网格型内嵌卡片
en-US: Grid card
---
## zh-CN
2017-08-08 21:22:09 +08:00
一种常见的卡片内容区隔模式。
## en-US
Grid style card content.
2019-05-07 14:57:32 +08:00
```jsx
import { Card } from 'antd';
const gridStyle = {
width: '25%',
textAlign: 'center',
};
export default () => (
<Card title="Card Title">
2017-08-08 21:21:49 +08:00
<Card.Grid style={gridStyle}>Content</Card.Grid>
<Card.Grid hoverable={false} style={gridStyle}>
Content
</Card.Grid>
2017-08-08 21:21:49 +08:00
<Card.Grid style={gridStyle}>Content</Card.Grid>
<Card.Grid style={gridStyle}>Content</Card.Grid>
<Card.Grid style={gridStyle}>Content</Card.Grid>
<Card.Grid style={gridStyle}>Content</Card.Grid>
<Card.Grid style={gridStyle}>Content</Card.Grid>
</Card>
2018-11-28 15:00:03 +08:00
);
2019-05-07 14:57:32 +08:00
```