我想将列设置为在移动视图中不可见。将内容设置为12即可,但将侧边栏的列设置为0则不行-(它呈现全宽)。我该如何实现?
我试图在第一列周围设置“折叠”,但没有用。我想请教最佳实践。谢谢。
<Row>
<Col xs="0" sm="3">
<Sidebar></Sidebar>
</Col>
<Col xs="12" sm="9">
... Rest of the content here.
我找到了答案。
我在边栏包装器中添加了以下类。我相信这在reactstrap中丢失了。
<Col xs="0" sm="3" className="d-none d-lg-block">
<Sidebar></Sidebar>
</Col>
<Col xs="12" sm="9">
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句