Font Awesome Icons in Offline

后端 未结 3 1514
遇见更好的自我
遇见更好的自我 2021-01-18 16:04

Is there any way to use this in offline?

 

        
相关标签:
3条回答
  • 2021-01-18 16:46

    Press the "Download free" button and make sure that you have the webfonts too. There is a web-fonts-with-css folder in the downloaded zip. Copy the fonts in your project and modify the paths for the fonts in your CSS to point to the location of the webfonts.

    If you open the CSS linked in your questions you'll see that they have some imports with

    url('../fonts/fontawesome-webfont.woff2?v=4.7.0')

    modify these with the location of the fonts downloaded.

    0 讨论(0)
  • 2021-01-18 16:58

    The Fontawesome website itself documents how to download and use the icon kit offline here: https://fontawesome.com/how-to-use/on-the-web/setup/hosting-font-awesome-yourself

    0 讨论(0)
  • 2021-01-18 17:02
    1. Download the font awesome free zip from the official site
    2. there is a folder called 'css', copy that folder into your project folder, (important) and also copy the folder named 'webfonts'
    3. then link the desired css file to html file (all.css or fontawesome.css or fontawesome.min.css) using the command
    4. then try your code, it will work
    0 讨论(0)
提交回复
热议问题