如何使用sass --precision? [英] How to use sass --precision?

查看:114
本文介绍了如何使用sass --precision?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用sass +罗盘制作一个流畅的网格,计算时我需要%至少有8位数字,但现在sass +罗盘会将我的小数点后四舍五入到3位数字。我发现如果使用-precision 可以告诉sass舍入到想要的位数,我的问题是我似乎可以弄清楚如何获得-precision 从我的项目的终端上工作。请帮助

I am trying to use sass + compass to make a fluid grid and I need my %'s to have at least 8 digits when compute them out but right now sass + compass is rounding my decimals to 3-digits. I found that if use --precision you can tell sass to round to how ever many digits you want, my issue is that i can seem to figure out how to get --precision to work from the terminal on my project. Please help

推荐答案

根据,在SASS的numbers.rb中配置@precision将获得此结果。看来--precision是不起作用的。

According to this answer, configuring @precision in SASS's numbers.rb will achieve this result. It appears that --precision is nonfunctional.

这篇关于如何使用sass --precision?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆