FontAwesome doesn't display in Firefox

前端 未结 6 1972
余生分开走
余生分开走 2020-12-08 07:52

Related question here.

Boris\' answer to the above question seems to make sense, but I installed the Font Awesome files on my server and the problem remains:

6条回答
  •  悲哀的现实
    2020-12-08 08:40

    Put in a custom CSS the following (for me it solved the problem):

    @font-face
    {
      font-family:'FontAwesome';
      src:url('./fontawesome-webfont.eot');
      src:url('./fontawesome-webfont.eot?#iefix') format('embedded-opentype'),
      url('./fontawesome-webfont.woff') format('woff'),
      url('./fontawesome-webfont.ttf') format('truetype'),
      url('./fontawesome-webfont.svg#FontAwesome') format('svg');
      font-weight:normal;
      font-style:normal
    }
    
    [class^="icon-"]:before,
    [class*=" icon-"]:before
    {
      font-family:FontAwesome;
      font-weight:normal;
      font-style:normal;
      display:inline-block;
      text-decoration:inherit
    }
    

提交回复
热议问题