Using SASS, How can I escape the slash character in a font declaration?

后端 未结 1 762
后悔当初
后悔当初 2021-02-12 23:42

I\'m writing a font declaration with short-hand syntax, and I\'m using SASS. I\'d like to escape the \'/\' character to avoid SASS makes the divition operation.

         


        
相关标签:
1条回答
  • 2021-02-13 00:37

    font: #{$fontSize}/#{$lineHeight} $fontName should do it.

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