2016-04-10 15:38:52 +08:00
|
|
|
---
|
|
|
|
order: 1
|
2016-05-26 17:46:55 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 无边框
|
|
|
|
en-US: No border
|
2016-04-10 15:38:52 +08:00
|
|
|
---
|
|
|
|
|
2016-05-26 17:46:55 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2016-04-10 15:38:52 +08:00
|
|
|
在灰色背景上使用无边框的卡片。
|
|
|
|
|
2016-05-26 17:46:55 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
A borderless card on a gray background.
|
|
|
|
|
2017-02-13 10:55:53 +08:00
|
|
|
````jsx
|
2016-04-10 15:38:52 +08:00
|
|
|
import { Card } from 'antd';
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<div style={{ background: '#ECECEC', padding: '30px' }}>
|
2017-09-27 22:32:49 +08:00
|
|
|
<Card title="Card title" bordered={false} style={{ width: 300 }} noHovering={false}>
|
2016-05-26 17:46:55 +08:00
|
|
|
<p>Card content</p>
|
|
|
|
<p>Card content</p>
|
|
|
|
<p>Card content</p>
|
2016-04-10 15:38:52 +08:00
|
|
|
</Card>
|
|
|
|
</div>
|
|
|
|
, mountNode);
|
|
|
|
````
|