ant-design/components/affix/demo/bottom.md

17 lines
256 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 2
title: 下方固定
---
2016-02-29 16:44:38 +08:00
固定在屏幕下方
````jsx
import { Affix, Button } from 'antd';
ReactDOM.render(
<Affix offsetBottom={20}>
<Button type="primary">固定在距离底部 20px 的位置</Button>
</Affix>
, mountNode);
````