@font-face not working

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

    Not sure exactly what your problem is, but try the following:

    1. Do the font files exist?
    2. Do you need quotes around the URLs?
    3. Are you using a CSS3-enabled browser?

    Check here for examples, if they don't work for you then you have another problem

    Edit:

    You have a bunch of repeated declarations in your source, does this work?

    @font-face { font-family: Gotham; src: url('../fonts/gothammedium.eot'); }
    
    a { font-family:Gotham,Verdana,Arial; }
    

提交回复
热议问题