Font Awesome icon not displaying in Safari and iPad

前端 未结 5 2317
误落风尘
误落风尘 2020-12-14 04:36

I have been using Font Awesome icons for a while now but after a round of bug tracking from an external company they found that the font awesome icons were not displaying in

5条回答
  •  余生分开走
    2020-12-14 04:57

    Step 1- Give fontawesome.css link in proper formate. - like type and rel
    
    
    
    Step 2-Some Changes in fontawesome css.
    
    @font-face {
        font-family: 'FontAwesome';
        src: url('../fonts/fontawesome-webfont.ttf?v=4.4.0') format('truetype');
        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.svg?v=4.4.0#fontawesomeregular') format('svg');
        font-weight: normal;
        font-style: normal;
    }
    .fa {
      display: inline-block;
      font: normal normal normal 14px/1 FontAwesome;
      font-size: inherit; 
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    

提交回复
热议问题