CSS @font-face not working with Firefox, but working with Chrome and IE

后端 未结 28 2814
野趣味
野趣味 2020-11-22 06:27

The following code works in Google Chrome beta as well as IE 7. However, Firefox seems to have a problem with this. I\'m suspecting it to be a problem of how my CSS files ar

28条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 06:54

    Are you testing this in local files or off a Web server? Files in different directories are considered different domains for cross-domain rules, so if you're testing locally you could be hitting cross-domain restrictions.

    Otherwise, it would probably help to be pointed to a URL where the problem occurs.

    Also, I'd suggest looking at the Firefox error console to see if any CSS syntax errors or other errors are reported.

    Also, I'd note you probably want font-weight:bold in the second @font-face rule.

提交回复
热议问题