<bdo id='PGX5H'></bdo><ul id='PGX5H'></ul>

<small id='PGX5H'></small><noframes id='PGX5H'>

        <legend id='PGX5H'><style id='PGX5H'><dir id='PGX5H'><q id='PGX5H'></q></dir></style></legend>
        <tfoot id='PGX5H'></tfoot>
        <i id='PGX5H'><tr id='PGX5H'><dt id='PGX5H'><q id='PGX5H'><span id='PGX5H'><b id='PGX5H'><form id='PGX5H'><ins id='PGX5H'></ins><ul id='PGX5H'></ul><sub id='PGX5H'></sub></form><legend id='PGX5H'></legend><bdo id='PGX5H'><pre id='PGX5H'><center id='PGX5H'></center></pre></bdo></b><th id='PGX5H'></th></span></q></dt></tr></i><div id='PGX5H'><tfoot id='PGX5H'></tfoot><dl id='PGX5H'><fieldset id='PGX5H'></fieldset></dl></div>

        资源解释为文档,但使用 MIME 类型 text/css 传输

        Resource interpreted as document but transferred with MIME type text/css(资源解释为文档,但使用 MIME 类型 text/css 传输)
        <tfoot id='0mMeN'></tfoot>
      1. <i id='0mMeN'><tr id='0mMeN'><dt id='0mMeN'><q id='0mMeN'><span id='0mMeN'><b id='0mMeN'><form id='0mMeN'><ins id='0mMeN'></ins><ul id='0mMeN'></ul><sub id='0mMeN'></sub></form><legend id='0mMeN'></legend><bdo id='0mMeN'><pre id='0mMeN'><center id='0mMeN'></center></pre></bdo></b><th id='0mMeN'></th></span></q></dt></tr></i><div id='0mMeN'><tfoot id='0mMeN'></tfoot><dl id='0mMeN'><fieldset id='0mMeN'></fieldset></dl></div>

        <legend id='0mMeN'><style id='0mMeN'><dir id='0mMeN'><q id='0mMeN'></q></dir></style></legend>

            • <bdo id='0mMeN'></bdo><ul id='0mMeN'></ul>
                    <tbody id='0mMeN'></tbody>

                  <small id='0mMeN'></small><noframes id='0mMeN'>

                  本文介绍了资源解释为文档,但使用 MIME 类型 text/css 传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  资源解释为文档,但使用 MIME 类型 text/css 传输

                  这是在 Google Chrome Inspector 中显示的错误.

                  This is the error that's showing up in Google Chrome Inspector.

                  文件是:http://www.doanddare.org/css/style.css

                  它正在由 php 处理器呈现.

                  It is being rendered by a php processor.

                  我该如何解决这个错误?

                  How can I fix this error?

                  返回的标题是:

                  Accept:application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
                  Cache-Control:max-age=0
                  User-Agent:Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3
                  

                  响应标头

                  HTTP/1.1 200 OK
                  Date: Sun, 10 Oct 2010 07:35:04 GMT
                  Server: Apache
                  content-style-type: text/css
                  Expires: Thu, 10 Oct 2030 03:50:23 GMT
                  Cache-Control: max-age=631138519, public
                  Content-Encoding: gzip
                  Vary: Accept-Encoding
                  Transfer-Encoding: chunked
                  Content-Type: text/css
                  Connection: Keep-Alive
                  

                  这可能与作为文档发送的请求标头和作为 css 文件返回的响应标头有关吗?

                  Could it be something to do with the request headers being sent as a document and the response headers returned as a css file?

                  如果是这样,我应该如何控制请求头?

                  If so, how should I control the request headers?

                  感谢您的帮助.

                  推荐答案

                  我只在 Chrome 上查看特定资源时出现错误.当我尝试打开 Javascript 文件 (.js) 时也会发生这种情况.

                  I only get error that when I view the specific resource on Chrome. This also happens when I try to open a Javascript file (.js).

                  我的结论是,当您在 Chrome 中打开组件文件(.css、.js)时,它会尝试将其解释为文档(在屏幕上显示输出),而不是将其解释为其原生 MIME 类型.

                  My conclusion is that when you open a component file (.css, .js) in Chrome, it will try to interpret as document (showing output on the screen), instead of interpreting it as its native MIME type.

                  说一个 Javascript 文件.如果你在 Chrome 中输入它,它应该被解释为文档(在屏幕上显示输出),而不是 Chrome 执行脚本(这是它的原生 MIME 类型所做的).

                  Say a Javascript file. If you enter it in Chrome, it should be interpreted as document (showing output on the screen), instead of Chrome executing the script (that's what its native MIME type does).

                  该消息仅适用于 Google Chrome,可以忽略不计,因为它仅在您打开组件文件时出现.

                  That message is Google Chrome only and is negligible, as it only appear when you open a component file.

                  这篇关于资源解释为文档,但使用 MIME 类型 text/css 传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  smtp gmail server php mailer not working(smtp gmail服务器php邮件程序不工作)
                  Email goes in spam when I send it via others SMTP server(当我通过其他 SMTP 服务器发送电子邮件时,电子邮件进入垃圾邮件)

                  <legend id='WaHAF'><style id='WaHAF'><dir id='WaHAF'><q id='WaHAF'></q></dir></style></legend>

                1. <tfoot id='WaHAF'></tfoot>

                      1. <i id='WaHAF'><tr id='WaHAF'><dt id='WaHAF'><q id='WaHAF'><span id='WaHAF'><b id='WaHAF'><form id='WaHAF'><ins id='WaHAF'></ins><ul id='WaHAF'></ul><sub id='WaHAF'></sub></form><legend id='WaHAF'></legend><bdo id='WaHAF'><pre id='WaHAF'><center id='WaHAF'></center></pre></bdo></b><th id='WaHAF'></th></span></q></dt></tr></i><div id='WaHAF'><tfoot id='WaHAF'></tfoot><dl id='WaHAF'><fieldset id='WaHAF'></fieldset></dl></div>
                          <tbody id='WaHAF'></tbody>

                        <small id='WaHAF'></small><noframes id='WaHAF'>

                            <bdo id='WaHAF'></bdo><ul id='WaHAF'></ul>