MUI style 写法
2021-01-05 本文已影响0人
想溜了的蜗牛
- hover 样式
'&:hover': {
background: "#f00",
},
- 当前节点下所有子元素共享的样式
exampleNode: {
'& > *': {
marginRight: theme.spacing(1),
[theme.breakpoints.down('xs')]:{
marginTop: theme.spacing(1),
}
}
},