mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 08:43:57 +08:00
759b0bb821
* seperate reset styles
* not reset ul/ol/p/heading
* revert reset.less idea
* move label style into ant-form-item, #5851
* revert reset.less idea
* update base.less
* Better typography from bootstrap@4
use reboot replace normalize
ref:
b4d84b9cdf/scss/_reboot.scss
close #6162
33 lines
487 B
Markdown
33 lines
487 B
Markdown
---
|
|
order: 0
|
|
title:
|
|
zh-CN: 典型卡片
|
|
en-US: Basic card
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
包含标题、内容、操作区域。
|
|
|
|
## en-US
|
|
|
|
A basic card containing a title, content and an extra corner content.
|
|
|
|
````jsx
|
|
import { Card } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<Card title="Card title" extra={<a href="#">More</a>} style={{ width: 300 }}>
|
|
<p>Card content</p>
|
|
<p>Card content</p>
|
|
<p>Card content</p>
|
|
</Card>
|
|
, mountNode);
|
|
````
|
|
|
|
<style>
|
|
.code-box-demo p {
|
|
margin: 0;
|
|
}
|
|
</style>
|