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

52 lines
940 B
Markdown
Raw Normal View History

---
order: 7
title:
zh-CN: 内部卡片
en-US: Inner card
---
## zh-CN
可以放在普通卡片内部,展示多层级结构的信息。
## en-US
It can be placed inside the ordinary card to display the information of the multilevel structure.
2019-05-07 14:57:32 +08:00
```jsx
import { Card } from 'antd';
ReactDOM.render(
<Card title="Card title">
2019-12-25 21:58:28 +08:00
<p className="site-card-demo-inner-p">Group title</p>
2019-05-07 14:57:32 +08:00
<Card type="inner" title="Inner Card title" extra={<a href="#">More</a>}>
Inner Card content
</Card>
<Card
style={{ marginTop: 16 }}
type="inner"
title="Inner Card title"
extra={<a href="#">More</a>}
>
Inner Card content
</Card>
2018-06-27 15:55:04 +08:00
</Card>,
2019-05-07 14:57:32 +08:00
mountNode,
2018-11-28 15:00:03 +08:00
);
2019-05-07 14:57:32 +08:00
```
2019-12-25 21:58:28 +08:00
```css
.site-card-demo-inner-p {
font-size: 14px;
color: rgba(0, 0, 0, 0.85);
margin-bottom: 16px;
font-weight: 500;
}
```
<style>
[data-theme="dark"] .site-card-demo-inner-p {
color: rgba(255,255,255,.85);
}
</style>