sass数值计算后单位前多出空格


假设我设置字体大小为

font-size: (14/16)em;

编译后,输出的是

font-size: 0.875 em; /* em前多了个空格有木有 */

这样就导致浏览器无法正确解析,怎么办?

sass css

roxhaiy 9 years, 11 months ago

你的写法错误,正确的方式应该是

.marvin {
  font-size:(14em/16);
}

http://sass-lang.com/docs/yardoc/file...

enhin answered 9 years, 11 months ago

Your Answer