How to include local file of font awesome 4.1 without using CDN?

后端 未结 6 1127
时光取名叫无心
时光取名叫无心 2020-12-29 05:24

\"With This is the effect with font awesome, i only can get it when i using font awesome 4.1 CDN)

6条回答
  •  庸人自扰
    2020-12-29 05:52

    You may find that the developer options in your favorite browser will give you an idea why the file is not working.

    Font awesome requires the font files which come with it. The CSS file will reference these and try to include them, but currently won't be able to find them.

    Download font-awesome-4.1.0.zip from FontAwesome

    Then extract this and put the css and fonts folders into your project. You can then reference the file as:

    
    

提交回复
热议问题