MUI style 写法

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

猜你喜欢

热点阅读