Solving CSS Stylesheet Not Loading / Rendering Error CSSスタイルシートを解決する特定読み込んでいます/レンダリングエラーが発生
My blog had this vexing problem where it used to render ugly, really ugly, as the stylesheet wasn’t being loaded on Firefox.私のblogがどこに使われるこの厄介な問題をレンダリングする醜い、本当に醜い、スタイルシートではないとして読み込まれている上、 Firefoxを起動します。 However after a refresh everything was fine.しかしすべては、罰金の後にリフレッシュします。 Even the Alexa thumbnail displayed the front page in all its css-less ugliness. Alexaのサムネイルも表示され、フロントページをCSSのすべての醜さレスです。 Initially I thought it was a temporary file loading error.当初と思っていたのテンポラリファイルを読み込んでいますエラーが発生します。 I also reduced the number of Javascripts on the page.私も数を減らして、ページ上のJavaScriptがします。 None of them could solve the problem.問題を解決するなしを知りませんでした。 Finally today, when I was debugging a project using Firebug, I noticed the actual problem.最後に今日、プロジェクトをデバッグするときに私は放火魔を使用して、気付いたの実際の問題です。
The stylesheet was not being loaded simply because the file type returned by the web server was text/plain instead of the required type - text/css.スタイルシートで読み込まれているだけではないため、ウェブサーバーから返されたファイルの種類は、テキスト/プレーンの代わりに、必要なタイプ-t ext/ c ssのです。 The solution was simple. I added the following to httpd.conf and restarted the server:解決策は単純です。 私のhttpd.confに次の行を追加すると、サーバーを再起動:
- The solution here doesn’t work because the problem is elsewhere, with mod_cache. AddType text/css .css -の解決策については機能しませんので、他の問題は、 m od_cacheです。 AddTypeのtext / cssのです。 CSSの
The temporary solution is to add the style.css to DisableCache directive in the virtual host configuration section (or in the main section).の一時的な解決策はstyle.cssをdisablecacheディレクティブを追加するには、仮想ホスト構成セクション(または、メインセクションを参照) 。 The permanent solution is to update Apache.を更新するの恒久的な解決策はapacheです。 This is a documented mod_cache defect.これは、欠陥mod_cacheに記載します。
Thanks toおかげで Firebug放火魔 for helping me solve this problem.この問題の解決を手伝ってくれています。
Note: Internet Explorer did render fine even with this error.注: Internet Explorerはレンダリング罰金も、このエラーが発生します。
Filed under提出されて Browserブラウザ , 、 Firefox Firefoxの , 、 Headline Newsニュースの見出し , 、 How Toどのように , 、 Pro BloggingプロBlogging , 、 Programmingプログラミング , 、 Webウェブ , 、 Web 2.0ウェブ2.0 , 、 Web Services Webサービス | |
| |
RSS 2.0 RSS 2.0を | |
Trackbackトラックバック this Article |この記事|
Email this Article電子メールこの記事
You may also like to readを読むようにすることも可能 |





July 3rd, 2007 at 8:50 am 2007年7月3日8:50 AMの
Hello, I’m sorry to say that it appears that your style sheet is not being loaded when using Firefox.こんにちは、お邪魔してすみませんたちによればそれが表示されていないお客様のスタイルシートを使用して読み込まれたときにFirefoxを起動します。
July 3rd, 2007 at 12:44 pm 2007年7月3日12:44 pmの
Can you please clear the cache and see if the problem persists?キャッシュをクリアすることができるかどうかの問題が解決しない場合ですか?
July 17th, 2007 at 3:47 pm 2007年7月17日3:47 pmの
Thank you for pointing me in the right direction to solve this problem.ポインティングいただきありがとうございます私はこの問題を解決するために、正しい方向にします。 I figured it might have something to do with the cache.私模様のことかもしれないと何か関係が、キャッシュをクリアします。
I think you have a slight error, though.わずかにエラーが発生すると思うけどね。 I wasn’t able to find a DisableCache directive in the documentation, but I found CacheDisable私はdisablecacheを検索することはできませんディレクティブのドキュメントで、実際に試してみたらcachedisable
http://httpd.apache.org/docs/2.0/mod/mod_cache.html#cachedisable http://httpd.apache.org/docs/2.0/mod/mod_cache.html # cachedisable
Thank you,ありがとうございました、
— Ghodmode -g hodmode