C/C++教程

DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.

本文主要是介绍DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

在scss中使用“/”报这个错误:

DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.

解决方法:查看官方文档

@use "sass:math";

// WRONG, will not work in future Sass versions.
@debug (12px/4px); // 3

// RIGHT, will work in future Sass versions.
@debug math.div(12px, 4px); // 3
这篇关于DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!