【问题标题】:Compass smart sprite layouts指南针智能精灵布局
【发布时间】:2012-04-18 08:23:14
【问题描述】:

根据文档http://compass-style.org/help/tutorials/spriting/sprite-layouts/ 有一种方法可以创建“智能”精灵布局,因为我对垂直布局不满意。

你好.sass

@orange-layout:smart
@import "orange/*.png"
@include all-orange-sprites

我会尝试通过命令compass compile test生成它

但这对我不起作用。我仍在接收“垂直”精灵。

【问题讨论】:

  • 您在控制台中确认精灵确实已重新生成?
  • 雪碧真的生成了。
  • 已修复:问题在于使用 @ 而不是 $。工作版$orange-layout:smart

标签: sass css-sprites compass-sass


【解决方案1】:

问题在于使用@ 而不是$。工作版本 $orange-layout:smart

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-06-11
    • 1970-01-01
    • 1970-01-01
    • 2013-04-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多