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

后端 未结 28 2816
野趣味
野趣味 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:31

    I had exactly this problem running ff4 on a mac. I had a local development server running and my @font-face declaration worked fine. I migrated to live and FF would 'flash' the correct type on first page load, but when navigating deeper the typeface defaulted to the browser stylesheet.

    I found the solution lay in adding the following declaration to .htaccess

    
        
        Header set Access-Control-Allow-Origin "*"
        
    
    

    found via

提交回复
热议问题