gpt4 book ai didi

ruby - SASS 无效的 css 错误

转载 作者:行者123 更新时间:2023-11-28 10:20:14 27 4
gpt4 key购买 nike

我刚开始使用 sass 并安装了 prepros。我试图编译一个 .scss 文件并得到一个错误:

语法错误:“color:”后的无效 CSS:预期的表达式(例如 1px,粗体)是“@blue;”

.scss 代码:

.footer {
clear: both;
background-color: @blue;

我安装了 Ruby 和 prepros。

最佳答案

SCSS 使用 $ 来表示变量,所以它应该是 background-color: $blue;

关于ruby - SASS 无效的 css 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24043752/

27 4 0
文章推荐: javascript - 删除某些生成内容中的单词 'Share'
文章推荐: css - GWT PushButton 图像/文本对齐
文章推荐: javascript - 如何使用 DirectIO 而不是 PrintNormal 打印到 Zebra 打印机?
文章推荐: html - 根据屏幕大小将
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com