[英]How to not to resize the content while using drawer in Material UI
只需在 demo.js 中像这样添加 position:'absolute' 。 它将遍历内容
drawer: {
position:'absolute',
width: drawerWidth,
flexShrink: 0,
whiteSpace: 'nowrap',
},
还将 marginLeft:80 添加到内容中,这样内容就不会在折叠的抽屉后面。
content: {
flexGrow: 1,
padding: theme.spacing(3),
marginLeft: 80
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.