Font Awesome icons not working in OSX Safari

后端 未结 7 1978
栀梦
栀梦 2021-02-13 18:26

My font-awesome icons are working fine in Firefox and Chrome, but in Safari I just see blank space for some of them but not others. Screenshot:

7条回答
  •  北海茫月
    2021-02-13 18:49

    Try this. It works for me.

    @font-face {
        font-family: 'FontAwesome'; 
        src: url('../fonts/fontawesome-webfont.eot?v=4.4.0'); 
        src:url('../fonts/fontawesome-webfont.eot #iefix&v=4.4.0') format('embedded-opentype'), 
            url('../fonts/fontawesome webfont.woff2?v=4.4.0') format('woff2'), 
            url('../fonts/fontawesome webfont.woff?v=4.4.0') format('woff'),
            url('../fonts/fontawesome webfont.ttf?v=4.4.0') format('truetype'),
            url('../fonts/fontawesome webfont.svg?v=4.4.0#fontawesomeregular') format('svg'); 
        font-weight: normal; 
        font-style: normal;
    }
    

提交回复
热议问题