【发布时间】:2014-05-11 05:21:10
【问题描述】:
框架 ASP.Net MVC 4
这是“在我发布之前一直有效”的另一个实例。
从 Visual Studio 运行我的 MVC 4 站点,一切正常。然而,当我发布 - 字体真棒休息。查看 Chrome 控制台,我看到了这个:
GET http://localhost:4321/Content/themes/crisp/font/zocial.woff?94486700 404 (Not Found)
在我的 CSS 中是这样引用的:
@font-face {
font-family: 'zocial';
src: url('/Content/themes/crisp/font/zocial.eot?94486700');
src: url('/Content/themes/crisp/font/zocial.woff?94486700') format('woff'),
url('/Content/themes/crisp/font/social.ttf?94486700') format('truetype'),
url('/Content/themes/crisp/font/zocial.svg?94486700#fontello') format('svg');
font-weight: normal;
font-style: normal;
}
我已经检查过 - 文件在站点目录中:
我做错了什么?
【问题讨论】:
-
不知道在哪里可以问这个,但是,你如何把截图放在帖子里?
-
@CSharper 在您问题顶部的工具栏中,有一个看起来像宝丽来的按钮,可让您上传图像。
标签: c# css asp.net-mvc asp.net-mvc-4