【发布时间】:2018-02-14 00:35:57
【问题描述】:
用 Google 搜索过,在语义 ui 的文档和问题页面中搜索过,并在 stackoverflow 中搜索过。找不到答案。
在 Semantic-ui-react 中,如何制作内容固定在屏幕上的侧边栏?我目前拥有的是这样的:
<Sidebar.Pushable as={Segment}>
<Sidebar
id="sidebar"
as={Menu}
animation="overlay"
direction="right"
visible={this.state.visible}
vertical
inverted
>
{this.getMenuItems()}
</Sidebar>
<Sidebar.Pusher>
<Route path="/" component={Filler} />
</Sidebar.Pusher>
</Sidebar.Pushable>
semantic-ui-react 文档中似乎没有任何词,并使 Sidebar.Pushable、Sidebar 或任何菜单项位置:固定;好像也没用。
【问题讨论】:
标签: reactjs semantic-ui semantic-ui-react