【问题标题】:CSS Files showing up with type text/plainCSS 文件以 text/plain 类型显示
【发布时间】:2013-10-06 20:19:12
【问题描述】:

我正在尝试在我的 Ubuntu 服务器上提供我的静态博客(由 jekyll 提供支持),但 CSS 不适用,我一直遇到问题:

"Resource interpreted as Stylesheet but transferred with MIME type text/plain". 

然而,在源代码中,我明确列出这些文件是“text/css”。关于如何解决这个问题的任何想法?

【问题讨论】:

  • 上传你的代码.. 文档

标签: css jekyll


【解决方案1】:

这是一个 Nginx 问题。我需要放置

include /etc/nginx/mime.types;

在“位置/”块中。

【讨论】:

    【解决方案2】:

    检查你是否设置了“rel='stylesheet' 属性。

    【讨论】:

      猜你喜欢
      • 2012-06-02
      • 2015-07-20
      • 1970-01-01
      • 2013-11-10
      • 1970-01-01
      • 2012-09-11
      • 2012-03-28
      • 1970-01-01
      • 2019-08-13
      相关资源
      最近更新 更多