@font-face not working

后端 未结 11 1488
说谎
说谎 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:11

    This is probably due to CORS (or not quoting paths) and is expected behaviour. I know it sounds confusing, but the reason is due to the source of your fonts and not the web page itself.

    A good explanation and numerous solutions for Apache, NGINX, IIS or PHP available in multiple languages can be found here:

    https://www.hirehop.com/blog/cross-domain-fonts-cors-font-face-issue/

提交回复
热议问题