阿帕奇将AddType文字/ CSS的.css忽略 [英] Apache AddType text/css .css Ignored

查看:416
本文介绍了阿帕奇将AddType文字/ CSS的.css忽略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在/字体目录做了,htaccess文件只有这条线在它(故障排除的一部分)。

I have made an ,htaccess file in my /font directory with only this line in it (as part of troubleshooting).

AddType text/css .css

但尽管如此谷歌浏览器(甚至19.0.1053.0金丝雀)报告说,.css文件返回为:MIME类型text / html

None the less Google Chrome (even 19.0.1053.0 canary) reports that the .css files are returned as: MIME type text/html

http://paulanorman.com/:11 资源间preTED作为样式而是转移MIME类型text / html:http://paulanorman.com/fonts/iwona-stylesheet.css

http://paulanorman.com/:11 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://paulanorman.com/fonts/iwona-stylesheet.css".

我使用HostGator的和交友已检查的文本/ CSS是我的服务器上默认的.css

I use Hostgator and have checked in Cpanel that text/css is default on my server for .css

我也用在Cygwin上的bash shell wget的检查和文件确实是下来为text / html

I have also checked using wget on cygwin bash shell and the documents are indeed coming down as text/html

这些样式表被忽略。但是我发现,如果我

These stylesheets are being ignored. However I have found if I

<style ..>
 <?php include "dah dha / style-sheets.css" ?>
</style>

一一在我的文档的所有头罚款。

one by one in the head of my document all is fine.

不过,我想不会有这样做。

However I would like not to have to do that.

任何一个解决了这个?我读了很多遍这个网,看来,因为它似乎无法解释的善变的问题。

Any one solved this? I have read much all over the net about this and it appears as an unexplained fickle problem it seems.

TIA
保罗

TIA paul

推荐答案

据www.askapache.com这是确定与引号

According to www.askapache.com this is ok as a one step process with the quote marks

将AddType文本/ CSS;字符集= UTF-8CSS

AddType 'text/css; charset=UTF-8' css

这篇关于阿帕奇将AddType文字/ CSS的.css忽略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆