大家好,我正在尝试采用响应式布局,但是以某种方式,我无法为此设置最小宽度。
$mobile: new-breakpoint(max-width 480px 4);
$tablet: new-breakpoint(max-width 768px 8);
$desktop: new-breakpoint(max-width 1336px 10);
$desktopxl: new-breakpoint(max-width 1550px 10);
不知何故,我希望$desktopxl
将仅用于之间1337px
和1550px
但是i am not able to set the min width
。请帮我。谢谢。ps:**我尝试过
$desktopxl: new-breakpoint((max-width: 699px) and (min-width: 520px)10);
但是它没有用。
您不需要分钟和混合。您所需要做的就是在最大宽度旁边做最小。像。如果最大宽度是700px
巡回演出的下一个最小宽度应该是701px
;
试试这个
$mobile: new-breakpoint(max-width 480px 4);
$tablet: new-breakpoint(max-width 768px 8);
$desktop: new-breakpoint(min-width 779px 10);
$desktopxl: new-breakpoint(min-width 1337px 10);
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句