我知道以下可以用波旁威士忌完成:
$mobile: new-breakpoint(max-width: 320px);
$tablet: new-breakpoint(max-width:760px min-width:321px);
$desktop: new-breakpoint(min-width: 761px);
然后我可以做这样的事情:
@include media($mobile) {
// some styling
}
它工作得很好。现在我必须添加影响手机和平板电脑的样式。我正在寻找手机和平板电脑断点的结合。
//desired behavior
//I know this is not available. Just made up
@include media($mobile, $tablet) {
// some styling.
// this should be applied to mobile and tablet
}