mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 15:59:38 +08:00
36 lines
432 B
Markdown
36 lines
432 B
Markdown
---
|
|
order: 2
|
|
title:
|
|
zh-CN: 容器
|
|
en-US: Inside a container
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
放入一个容器中。
|
|
|
|
## en-US
|
|
|
|
Spin in a container.
|
|
|
|
````__react
|
|
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;
|
|
}
|
|
````
|