@import "susy"; $total-columns:12; //12列网格系统 $column-width:5em; $gutter-width:1em; //每列间隙 $grid-padding:$gutter-width; [class^="inner"]{ @include container(); @include susy-grid-background; }
保存执行后,报错:Undefined mixin 'susy-grid-background'
已解决
悬赏分:60
- 解决时间 2021-11-11 15:46
点赞 0反对 0举报 0
收藏 0
分享 43
回答2
最佳
-
如果只是网格是问题,我使用:
@include container(show);
要么@include container(show overlay);
你是否查阅了http://susy.readthedocs.org/e...上的文档?支持 0 反对 0 举报2021-11-10 15:38
-
楼上回答解决了我的问题,可以用@include container(show)
另外,@include susy-grid-background是在《Sass和Compass设计师指南》一书中被提到的。
其无法使用问题,在https://www.zhihu.com/questio... 找到了答案:@import "susyone"
官网解释:是使用susy旧语法需要引入"susyone"支持 0 反对 0 举报2021-11-10 15:47