3
스타일러스에서 음수 변수를 사용하려면 어떻게해야합니까?스타일러스. 음수 변수
나는 스프라이트에 대한 믹스 인 쓰기 :
sprite-medium(col,row)
width = 40px
height = 40px
width: width
height: height
background: url('../img/medium-sprite.png') no-repeat
background-position: -col*width -row*height
그리고 오류가 있습니다. 물론 mixins 호출에서 음의 값을 쓸 수도 있지만 완벽한 결정은 아닙니다. 누구든지 도울 수 있니? 감사.
가능한 복제 http://stackoverflow.com/questions/23232729/stylus-not-allowing-basic-subtraction. – Panya