0

我正在尝试将当前在导航中使用的背景图像转换为精灵以保存 http 请求,尽管我收到以下错误

 content: "\000a Sass::SyntaxError: Undefined mixin 'navigation-sprite'.\000a   (in \002f home\002f html\002f teammngt\002f app\002f assets\002f stylesheets\002f navigation.css.scss)";

.scss 文件

@import "compass";

@import "navigation/main/*.png";

a {
  display: table-cell;
  /* #header_main height + 1, to move it 1px into the header_main strip */
  height: 61px;
  width: 120px;
  @include navigation-sprite(bg-normal);
  //background: url('navigation/main/bg-normal.png') no-repeat;
  /* Concerning fonts/text */
  line-height: 26px;
  /* Concerning text align */
  text-align: center;
  vertical-align: bottom;

肯定我在这里做错了什么,但我没有太多运气解决它

4

1 回答 1

0
@import "compass";
@import "navigation/main/*.png";
@include all-main-sprites;

像这样使用:

@include main-sprite(bg-normal);
于 2012-08-15T14:18:57.473 回答