触控笔代码:
Sprite($positiveXCoordinate, $positiveYCoordinate, $width, $height)
width {$width}px
height {$height}px
background-position -{$positiveXCoordinate}px -{$positiveYCoordinate}px
错误:
157| Sprite($positiveXCoordinate, $positiveYCoordinate, $width, $height)
158| width {$width}px
159| height {$height}px
160| background-position -{$positiveXCoordinate}px -{$positiveYCoordinate}px
161|
--------^
expected "indent", got "outdent"
我试图找到文件中的所有空格:
作品:
Sprite($positiveXCoordinate, $positiveYCoordinate, $width, $height)
width 2px
预期的“缩进”失败,得到“outdent”
:
Sprite($positiveXCoordinate, $positiveYCoordinate, $width, $height)
width {$width}px
看起来插值是无效的,我没有找到示例,在这种情况下如何插值。
最佳答案
official doc 上的信息不多...你能试试吗
Sprite($positiveXCoordinate, $positiveYCoordinate, $width, $height)
width: $width * 1px
关于css - Stylus error : "expected "indent", got "outdent",可能是因为插值无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61400155/