mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-29 20:08:37 +08:00
18 lines
251 B
Markdown
18 lines
251 B
Markdown
|
# 下方固定
|
||
|
|
||
|
- order: 2
|
||
|
|
||
|
固定在屏幕下方
|
||
|
|
||
|
---
|
||
|
|
||
|
````jsx
|
||
|
import { Affix, Button } from 'antd';
|
||
|
|
||
|
ReactDOM.render(
|
||
|
<Affix offsetBottom={20}>
|
||
|
<Button type="primary">固定在距离底部 20px 的位置</Button>
|
||
|
</Affix>
|
||
|
, mountNode);
|
||
|
````
|