0

我在我的 ASP.NET MVC4 应用程序 CSS 中遇到了一个大问题为了加载新字体,我正在使用 @charset "utf-8"; /* CSS 文档 */

 @font-face {
  font-family: 'RobotoBoldItalic';
  src: url("../../../Content/KarmaLoopMobileContent/font/Roboto-BoldItalic-webfont.eot");
  src: url("../../../Content/KarmaLoopMobileContent/font/Roboto-BoldItalic-webfont.eot?#iefix") format("embedded-opentype"), url("../../../Content/KarmaLoopMobileContent/font/Roboto-BoldItalic-webfont.woff") format("woff"), url("../../../Content/KarmaLoopMobileContent/font/Roboto-BoldItalic-webfont.ttf") format("truetype"), url("../../../Content/KarmaLoopMobileContent/font/Roboto-BoldItalic-webfont.svg#RobotoBoldItalic") format("svg");
  font-weight: normal;
  font-style: normal;
}

但是字体没有变化。

4

1 回答 1

0

查看 firebug/dev 工具,看看页面加载是否有任何错误。

于 2012-10-02T09:49:09.317 回答