2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 2
|
2019-05-07 14:57:32 +08:00
|
|
|
title:
|
2016-07-21 09:51:04 +08:00
|
|
|
zh-CN: 容器
|
|
|
|
en-US: Inside a container
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-10-31 02:00:03 +08:00
|
|
|
|
2016-07-21 09:51:04 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2015-10-31 02:00:03 +08:00
|
|
|
放入一个容器中。
|
|
|
|
|
2016-07-21 09:51:04 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
Spin in a container.
|
|
|
|
|
2019-05-07 14:57:32 +08:00
|
|
|
```jsx
|
2015-10-31 02:00:03 +08:00
|
|
|
import { Spin } from 'antd';
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<div className="example">
|
|
|
|
<Spin />
|
2018-06-27 15:55:04 +08:00
|
|
|
</div>,
|
2019-05-07 14:57:32 +08:00
|
|
|
mountNode,
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|
2015-10-31 02:00:03 +08:00
|
|
|
|
2019-05-07 14:57:32 +08:00
|
|
|
```css
|
2015-10-31 02:00:03 +08:00
|
|
|
.example {
|
|
|
|
text-align: center;
|
2019-05-07 14:57:32 +08:00
|
|
|
background: rgba(0, 0, 0, 0.05);
|
2015-10-31 02:00:03 +08:00
|
|
|
border-radius: 4px;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
padding: 30px 50px;
|
|
|
|
margin: 20px 0;
|
|
|
|
}
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|
2019-12-24 20:58:42 +08:00
|
|
|
|
|
|
|
<style>
|
|
|
|
.example {
|
|
|
|
background: rgba(255,255,255,0.08);
|
|
|
|
}
|
|
|
|
</style>
|