You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
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 className="site-card-border-less-wrapper">
|
|
|
|
<Card title="Card title" bordered={false} style={{ width: 300 }}>
|
|
|
|
<p>Card content</p>
|
|
|
|
<p>Card content</p>
|
|
|
|
<p>Card content</p>
|
|
|
|
</Card>
|
|
|
|
</div>,
|
|
|
|
mountNode,
|
|
|
|
);
|
|
|
|
```
|
|
|
|
|
|
|
|
```css
|
|
|
|
.site-card-border-less-wrapper {
|
|
|
|
background: #ececec;
|
|
|
|
padding: 30px;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
<style>
|
|
|
|
[data-theme="dark"] .site-card-border-less-wrapper {
|
|
|
|
background: #303030;
|
|
|
|
}
|
|
|
|
</style>
|