【发布时间】:2019-02-28 06:55:49
【问题描述】:
breakpoints.up、breakpoints.down、breakpoints.between 和 breakpoints.value 之间有什么区别?
这段代码是什么意思,断点值是如何在这里工作的?是theme.spacing.unit*2*2 = theme.spacing.unit*4还是有别的意思?
[theme.breakpoints.up(600 + theme.spacing.unit * 2 * 2)]: {
width: 600,
marginLeft: 'auto',
marginRight: 'auto',
},
【问题讨论】:
-
[theme.breakpoints.up(600 + theme.spacing.unit * 2 * 2)]没有特殊意义 -
同
theme.spacing.unit * 4。我刚刚发布了一个答案,其中解释了您提到的各种断点方法。如果它回答了您的问题,请告诉我。
标签: reactjs responsive-design media-queries material-ui breakpoints