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

搜尋 Mozilla 技術支援網站

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

了解更多

Webfonts in headings don't display correctly

  • 2 回覆
  • 2 有這個問題
  • 21 次檢視
  • 最近回覆由 cor-el

more options

I'm designing a website with @fontface fonts hosted locally on my site. Fonts display properly in all browsers except Firefox... and it's probably something really simple that's wrong. Body text is okay, but headings and classes don't work. I uploaded a few start pages to http://www.wineartandheart.org to test them... hope someone can help?

I'm designing a website with @fontface fonts hosted locally on my site. Fonts display properly in all browsers except Firefox... and it's probably something really simple that's wrong. Body text is okay, but headings and classes don't work. I uploaded a few start pages to http://www.wineartandheart.org to test them... hope someone can help?

被選擇的解決方法

Note that the Web Console (Firefox/Tools > Web Developer) shows a missing ';' in a style rule:

Expected end of value but found ':'.  Error in parsing value for 'font-family'.  Declaration dropped.
ul.MenuBarHorizontal li
{
	margin: 0;
	padding: 0;
	list-style-type: none;
	font-family: Urbana-Medium, Urbana-light, "Trebuchet MS", sans-serif /* missing semi colon */
	font-size: 100%;
	position: relative;
	text-align: center;
	cursor: pointer;
	width: 6em;
	float: right;
}
從原來的回覆中察看解決方案 👍 0

所有回覆 (2)

more options

Could you use the Inspector feature to see what font Firefox is using? You can right-click an element and choose Inspect Element (Q). On the right side of the Inspector pane, click Font. (Screen shot attached.)

More generally, when you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.

(1) Bypass Firefox's Cache

Firefox menu > Preferences > Advanced

On the Network mini-tab > Cached Web Content : "Clear Now"

If you have a large hard drive, this might take a few minutes.

(2) Remove the site's cookies (save any pending work first). While viewing a page on the site, try either:

  • right-click and choose View Page Info > Security > "View Cookies"
  • Tools menu > Page Info > Security > "View Cookies"

In the dialog that opens, you can remove the site's cookies individually.

Then try reloading the page. Does that help?

more options

選擇的解決方法

Note that the Web Console (Firefox/Tools > Web Developer) shows a missing ';' in a style rule:

Expected end of value but found ':'.  Error in parsing value for 'font-family'.  Declaration dropped.
ul.MenuBarHorizontal li
{
	margin: 0;
	padding: 0;
	list-style-type: none;
	font-family: Urbana-Medium, Urbana-light, "Trebuchet MS", sans-serif /* missing semi colon */
	font-size: 100%;
	position: relative;
	text-align: center;
	cursor: pointer;
	width: 6em;
	float: right;
}