【问题标题】:SASS calculation rounding - configurating the number of decimals with Web Workbench and Visual Studio 2012SASS 计算舍入 - 使用 Web Workbench 和 Visual Studio 2012 配置小数位数
【发布时间】:2013-03-22 19:35:01
【问题描述】:

在 SASS 中,您通常可以配置计算中所需的小数位数(请参阅 Sass and rounding down numbers. Can this be configured?)。

这很方便,尤其是 Chrome 有时会出现一些奇怪的舍入错误。

我目前正在使用 Mindscape Web Workbench (http://www.mindscapehq.com/products/web-workbench) 在 Microsoft Visual Studio 2012 中使用 SASS。有人知道您如何在这样的环境中配置这些设置吗?

(我还在 Mindscape 自己的支持论坛上发布了这个问题:http://www.mindscapehq.com/forums/thread/673536)。

谢谢!

【问题讨论】:

    标签: visual-studio sass decimal rounding visual-studio-extensions


    【解决方案1】:

    Mindscape 回到了论坛,你可以通过“编译选项指令”来做到这一点。只需将其放在 SASS 文件的顶部即可:

    //* scss-compile-options: --precision 8
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-02
      相关资源
      最近更新 更多