这是我的警报:
<MobileView>
<UncontrolledAlert color="danger" fade={false}>
<h4>
This page is not optimized for mobile.
<br/>
Please view on a desktop device.
</h4>
</UncontrolledAlert>
</MobileView>
但是当用户滚动时,警报会移动。我希望它留下来。
这是关于alert
的最佳文档,我可以找到https://github.com/reactstrap/reactstrap/blob/master/src/Alert.js
我会做<Alert style={{position: 'fixed'}}/>