reactjs - 如何将material-ui抽屉分为header、main和Footer部分?
问题描述
我使用材质 UI 抽屉,并希望将其分为 3 个部分:
- header => #固定在顶部
- main => #可以滚动的最大部分
- footer => #固定在底部
所以我使用这个伪代码:
return (
<Wrapper>
<Drawer variant="permanent" anchor="right">
Header
</Drawer>
<Drawer variant="permanent" anchor="right">
Main
</Drawer>
<Drawer variant="permanent" anchor="right">
Footer
</Drawer>
</Wrapper>
);
最后,我想要抽屉如下: https ://material-app.bootlab.io
解决方案
推荐阅读
- javascript - 使用 javascript 显示图像时只显示一张图像
- android - 为什么在 google play 暂停我的应用后 Admob 广告没有显示?
- azure - Azure 资源删除锁可防止删除资源上的角色分配
- pdf - PDF Rectangle[re] 显示位置与 PDF 文档中的对象位置不同
- eclipse - 为什么没有选项可以将 Eclipse 上的 java 项目设置为 Apache Derby 性质?
- c# - 如何在下拉列表中选择与 specflow 大纲值相同的值
- perl - $dir =~ s/__math_eqn__/$fun->{'VAR'}{'math_eqn'}/g; 在perl中做
- flutter - 可扩展底栏溢出
- json - Python 从所有子目录中读取 JSON 文件
- node.js - SailsJs 套接字(节点)在 WebSocket 握手期间给出 404 错误,当与 nginx 代理的 ssl 配置一起使用时