@fontface works on http://www.domain.com but doesn't work on http://domain.com

前端 未结 2 1939
旧时难觅i
旧时难觅i 2021-01-25 08:16

@fontface works when I load http://www.grozav.com but doesn\'t work on http://grozav.com .

What can I do to fix this?

 @font-face {
    fon         


        
2条回答
  •  猫巷女王i
    2021-01-25 08:53

    Definitively it's the url, but why? Apparently @font-face does not care about cross domain issues but firefox do, so in order to make it work with cross domain in firefox you should set your server (apache?) to avoid this restriction for one or multiple domains, the following page has some info about this: http://www.cssbakery.com/2010/07/fixing-firefox-font-face-cross-domain_25.html

    I guess the simplest choice is @Curt's choice ;)

提交回复
热议问题