0
根据文档http://compass-style.org/help/tutorials/spriting/sprite-layouts/ 有一种方法可以创建'智能'雪碧布局,因为我不满意垂直雪碧布局。指南针智能雪碧布局
hello.sass
@orange-layout:smart
@import "orange/*.png"
@include all-orange-sprites
我会尝试通过命令compass compile test
产生,但它并没有为我工作。我仍然收到'垂直'精灵。
您在控制台中确认精灵确实重新生成了吗? – 2012-04-05 08:22:14
雪碧真的会产生。 – 2012-04-05 13:21:45
修复: 问题出在使用@而不是$。 工作版本'$ orange-layout:smart' – 2012-04-05 13:22:33