我需要一些配置在我的应用程序被重新定位。例如,我使用了material中的组件SearchIcon,并希望在屏幕上调整它:
style = themes => {
iconSearch: {
[theme.breakpoints.up('sm') && theme.breakpoints.down('md')]: {
margin: 14%
}
[theme.breakpoints.up('md') && theme.breakpoints.down('lg')]: {
margin: 8%
}
}但这并没有考虑到min-width=576px和max-width=768px的利润率为14%,也没有考虑到第二种选择。怎么解决这个问题?
发布于 2018-02-22 20:50:04
https://stackoverflow.com/questions/46773189
复制相似问题