Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将一些 LESS 文件转换为 SCSS,并且在样式表中使用数学时似乎存在问题。
.class { .... bottom: #{((52+32)/2)/14em}; ... }
是否编译为 3/em 并产生错误?SASS 不能处理复杂的数学吗?
我认为em需要在花括号之外。
em
.class { .... bottom: #{((52+32)/2)/14}em; ... }