mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-22 22:48:29 +08:00
30 lines
475 B
Markdown
30 lines
475 B
Markdown
---
|
|
order: 1
|
|
title:
|
|
zh-CN: 无边框
|
|
en-US: No border
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
在灰色背景上使用无边框的卡片。
|
|
|
|
## en-US
|
|
|
|
A borderless card on a gray background.
|
|
|
|
````jsx
|
|
import { Card } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<div style={{ background: '#ECECEC', padding: '30px' }}>
|
|
<Card title="Card title" bordered={false} style={{ width: 300 }}>
|
|
<p>Card content</p>
|
|
<p>Card content</p>
|
|
<p>Card content</p>
|
|
</Card>
|
|
</div>,
|
|
mountNode
|
|
);
|
|
````
|