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
上一篇:【Sass/SCSS 官方英文文档翻译整理】SCSS 完整自学中文版教程02_SCSS的调试


下一篇:ajax的简单封装