[英]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.