CSS rules output by SASS mixin being ignored

前端 未结 1 1968
旧时难觅i
旧时难觅i 2021-01-27 08:11

A SASS mixin which produces some CSS rules is being ignored. Chrome Dev Tools is showing the rules registered but crossed out and I cannot figure out why. I initially thought th

相关标签:
1条回答
  • 2021-01-27 08:36

    The browser is ignoring your CSS because it is not valid. The width, height, and background-position properties do not accept strings, they accept lengths (in the case of background-position, a list of lengths).

    .foo {
       @include sprite(19px, 25px, -300px 0);
    }
    

    Unless you want a string, do not use quotes.

    0 讨论(0)
提交回复
热议问题