2***@qq.com
2***@qq.com
  • 发布:2021-06-17 17:43
  • 更新:2021-06-17 17:43
  • 阅读:670

scss for循环报错怎么解决

分类:uni-app

$amount : 200;
@for $i from 1 through $amount {
$theta : ($i / $amount) 120;
$delta : ($i / $amount)
pi();
$x : 200px cos($delta) cos($theta) + 200; //+200 to center our sphere in our 3D world
$y : 200px cos($delta) sin($theta) + 200; //+200 to center our sphere in our 3D world
$z : 200px * sin($delta);
text:nth-child(#{$i}){
transform: translate3d($x, $y,$z);
}
}

报错信息:
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Undefined operation: "0.005 times pi()".
on line 482 of D:\新建文件夹\wallpaper\pages\index\index.vue
$delta : ($i / $amount) * pi();

2021-06-17 17:43 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复