手写笔代码:
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"
我试图找到文件中的所有空格:
Works:
Sprite($positiveXCoordinate, $positiveYCoordinate, $width, $height)
width 2px
expected "indent", got "outdent"
失败:
Sprite($positiveXCoordinate, $positiveYCoordinate, $width, $height)
width {$width}px
看上去行插值无效,我没有找到示例,在这种情况下如何插值。