搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Webfonts in headings don't display correctly

  • 2 个回答
  • 2 人有此问题
  • 17 次查看
  • 最后回复者为 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;
}