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

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

    Using an .htaccess Access Control Allow Origin rule didn't work for me when I was confronted with this issue.

    Instead, in IIS in the web.config insert the system.webServer block shown below.

    
    
        
            
                
                    
                
            
        
    
    

    This worked like a charm for me. If you need to restrict access to particular domain, replace the * with the domain.

提交回复
热议问题