gpt4 book ai didi

css - 图标字体 : What causes the uninterpreted box in the code inspector?

转载 作者:行者123 更新时间:2023-11-28 06:30:18 30 4
gpt4 key购买 nike

我使用的是图标字体,只要图标在界面中正常显示,一切正常。我正在使用 .scss 格式通过 Sass 创建文件。

我注意到当我检查一个元素以在代码检查器中查看它的 CSS 属性时,或者通过代码检查器查看样式表,或者只是在我的文本编辑器中打开 .css 文件时,它会显示图标的 Unicode 字符字形如下:.icon-alert::before {
内容:“”!重要;
}

是什么导致带有问号的小框而不是 .scss 文件中实际写入的内容:\e669

我该如何解决这个问题?

最佳答案

我还不能将此标记为重复,但已有关于此主题的帖子。您必须创建一个函数来解决已知错误:

Sass: unicode escape is not preserved in .css file

https://github.com/sass/sass/issues/1395

关于css - 图标字体 : What causes the uninterpreted box in the code inspector?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35014947/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com