使用SASS,如何在字体声明中转义斜杠字符?

alo*_*res 16 sass

我正在编写一个带有简写语法的字体声明,而我正在使用SASS.我想逃避'/'字符以避免SASS进行分区操作.

$fontSize: 14px;
$lineHeight: 16px;
$fontName: Arial;

body
{
    font: $fontSize/$lineHeight $fontName;
}
Run Code Online (Sandbox Code Playgroud)

这被编译为:

font: 0.875 Arial;
Run Code Online (Sandbox Code Playgroud)

我想得到的是:

font: 14px/16px Arial;
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

Nat*_*aum 23

font: #{$fontSize}/#{$lineHeight} $fontName 应该这样做.