@font-face not working

后端 未结 11 1498
说谎
说谎 2020-12-13 18:28

Don\'t know why but font is not displaying.Please help.

CSS(in css folder): style.css:

@font-face { 
 font-family: Gotham;
 src: url(../fonts/goth         


        
11条回答
  •  情深已故
    2020-12-13 19:16

    I had this problem recently and the problem was that my web server was not configured to serve woff files. For IIS 7, you can select your site, then select the MIME Types icon. If .woff is not in the list, you need to add it. The correct values are

    File name extension: .woff
    MIME type: application/font-woff
    

提交回复
热议问题