mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 01:19:45 +08:00
28 lines
348 B
Markdown
28 lines
348 B
Markdown
---
|
|
order: 2
|
|
title: 容器
|
|
---
|
|
|
|
放入一个容器中。
|
|
|
|
````jsx
|
|
import { Spin } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<div className="example">
|
|
<Spin />
|
|
</div>
|
|
, mountNode);
|
|
````
|
|
|
|
````css
|
|
.example {
|
|
text-align: center;
|
|
background: rgba(0,0,0,0.05);
|
|
border-radius: 4px;
|
|
margin-bottom: 20px;
|
|
padding: 30px 50px;
|
|
margin: 20px 0;
|
|
}
|
|
````
|