设置Layout的最小高度为可视区域的高度
<Layout style={{ minHeight: document.documentElement.clientHeight }}>
<Header className="header">
<img className="logo" src={logo} />
</Header>
<Content style={{ marginTop: 64}}>
<div className="site-layout-background" style={{ padding: 24, minHeight: 380 }}>
<BrowserRouter>
<Switch>
<Route path={url + 'manage'} component={Manage} />
<Route path='/view' component={View} />
<Route path={url + 'submit'} component={Submit} />
</Switch>
</BrowserRouter>
</div>
</Content>
<Footer style={{ textAlign: 'center' }}>Newegg ©2021</Footer>
</Layout>










网友评论