using font-face in meteor?

后端 未结 1 414
有刺的猬
有刺的猬 2021-01-04 17:45

I am trying to use CSS @font-face in meteor, but for some reason it isn\'t working:

@font-face {
    font-family: printFailed; 
    src:
    url(\"../public/         


        
相关标签:
1条回答
  • 2021-01-04 18:50

    Just use / as everything in public becomes the root directory from the point of view of the web browser:

    @font-face {
        font-family: printFailed; 
        src:
        url("/fonts/wlm_print_failed.ttf"),
        url("/fonts/wlm_print_failed.eot");
    }
    
    0 讨论(0)
提交回复
热议问题