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