gpt4 book ai didi

css - Visual Studio 2015 无法在该位置找到字体

转载 作者:行者123 更新时间:2023-11-28 05:28:13 25 4
gpt4 key购买 nike

安装 SASS 的 WebCompiler 后,VS2015 出现了一个奇怪的问题。

在安装 WebCompiler 之前,我有几个 css 文件。安装编译器后,我手动将这些文件转换为 scss 文件。尽管所有字体都指向正确的位置,但 Visual Studio 在某处停止查找我的 woff 文件。

我的解决方案文件如下:

enter image description here

我的字体看起来像这样:

@font-face { font-family: LatoBlack; src: url('../fonts/Lato-Black.woff'); }

虽然 intelisense 告诉我 url 是正确的,并且有一个名为 Lato-Black.woff 的文件,但当我运行该应用程序时,我收到了 404 错误。

最佳答案

这可能是不自动包含文件的解决方案。

这是一个旧线程,告诉您如何在 Visual Studio 中自动包含文件:

Is there a way to automatically include content files into asp.net project file?

关于css - Visual Studio 2015 无法在该位置找到字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38658168/

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