css - SASS 语法错误:应为数字。得到:计算()
问题描述
当我在浏览器中使用这个 CSS 时,它工作正常
background: linear-gradient(to bottom right, transparent calc(50% - 1px), red 50%, transparent calc(50% + 1px) );
但是当我在 SASS 中使用它时,
background: linear-gradient(to bottom right, transparent calc(50% - 1px), red 50%, transparent calc(50% + 1px) )
我收到一个错误:SASS Syntax error: Expected a Number. Got: calc(50% + 1px)
我错过了什么?
解决方案
推荐阅读
- c++ - ESP32 build in Arduino IDE: undefined reference to `CLASS::function' 错误
- reactjs - ReactJs onClick 手机
- java - 为什么无法识别布尔值?
- sql - 跨行的 SQL 求和
- python - 从两个类继承(或)
- ios - 更新到 Xcode 12:无法将“DataRequest”类型的值转换为闭包结果类型“Void”
- css - 实现 Slick Slider 时使用混合模式中断的元素
- symfony - Api平台,部分数据相同时禁止POST方法
- javascript - 卡在 React-Native 推送通知中
- abap - 基于结构的 F4 搜索帮助。它是如何工作的?