ant-design/components/card/demo/border-less.md
2017-10-18 21:20:11 +08:00

473 B

order title
1
zh-CN en-US
无边框 No border

zh-CN

在灰色背景上使用无边框的卡片。

en-US

A borderless card on a gray background.

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);