為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

CSS not working for self published website

  • 6 回覆
  • 7 有這個問題
  • 10 次檢視
  • 最近回覆由 djasylum

more options

My problem is strange. I have the latest version of Firefox, all of my add-ons are up to date, and for all published websites it seems to work perfectly. My problem is that I am handwriting a lot of HTML, CSS, and scripts for a masters class I am taking in college, and when I load those pages, Firefox seems to ignore the CSS formatting, and all other formatting as well. I have been all up and down the forums trying to find an answer, but none have worked. Everything from clearing the cache (offline), removing all cookies and history, removing themes, and running in safe mode. In safe mode it works better, but still not complete. I have been using Internet Explorer in Firefox's absence, and the formatting appears there fine. Hopefully you will be able to direct me, I'm a die hard Firefox fan, and I miss my browser! Much Mahalos for your time.

Aloha, Brad

My problem is strange. I have the latest version of Firefox, all of my add-ons are up to date, and for all published websites it seems to work perfectly. My problem is that I am handwriting a lot of HTML, CSS, and scripts for a masters class I am taking in college, and when I load those pages, Firefox seems to ignore the CSS formatting, and all other formatting as well. I have been all up and down the forums trying to find an answer, but none have worked. Everything from clearing the cache (offline), removing all cookies and history, removing themes, and running in safe mode. In safe mode it works better, but still not complete. I have been using Internet Explorer in Firefox's absence, and the formatting appears there fine. Hopefully you will be able to direct me, I'm a die hard Firefox fan, and I miss my browser! Much Mahalos for your time. Aloha, Brad

所有回覆 (6)

more options

Reload web page(s) and bypass the cache.

  • Press and hold Shift and left-click the Reload button.
  • Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • Press "Cmd + Shift + R" (MAC)

Can you post a link?

Do you see any error messages in the Firefox/Tools > Web Developer > Error Console (Shift+CtrL+J) relating to this issue?

more options

Aloha and thank you for the quick reply! I unfortunately have tried the Reload web page and bypassing the cache and got no where. I did, however, check the error console under the Web Developer and found some very strange errors. I'll post them here, perhaps you guys can make sense of them.

Dangling combinator. Ruleset ignored due to bad selector. (10 times)

Selector expected. Ruleset ignored due to bad selector.

Error in parsing value for 'font-style'. Declaration dropped.

Found unclosed string "s Home Page</title>'. Unexpected end of file while searching for closing } or invalid rule set.

由 djasylum 於 修改

more options

The last error may be the problem, because that causes Firefox to skip al other CSS rules.

Found unclosed string "s Home Page</title>'. Unexpected end of file while searching for closing } or invalid rule set.

Do you see any red text in the page source?

  • Firefox > Web Developer > Page Source
  • Tools > Web Developer > Page Source (Ctrl+U)

The HTML5 parser used in Firefox 8 is far more stricter with simple errors than the parser used in previous Firefox versions.

more options

Thanks again cor-el! I searched the page source using the Web Developer > Page Source, but there was no red to be found anywhere :( I was really hoping to see some actually. This is getting stranger and stranger. I appreciate you helping me through this.

P.S. I submitted my work to my professor and asked her to open it in her Firefox. She just reported to me that it opened perfectly fine on hers. Even stranger yet.

由 djasylum 於 修改

more options

You did try to clear the cache?

Does your professor use the same Firefox version as you do?


Start Firefox in Diagnose Firefox issues using Troubleshoot Mode to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).

more options

Sorry it took me a bit to get back with you cor-el. Holidays...Anyway, I tried your suggestions, I cleared the cache again just in case, but I know I did it several times before trying to fix this problem. No luck. I also tried the safe mode, which is a first, but unfortunately everything remained the same. I disabled themes and the addons separately as well, but no luck there either. My professor also runs the same version of Firefox as I, which is the latest update. Thanks again for your help!