Font awesome not working server

Hi, amazing fonts on the icons on the website, using the icons at the local level, but I look, but the server does not appear when.

enter image description here

+5
source share
2 answers

Do you declare for UTF-8 in your document as well as in the stylesheet?

<meta charset="UTF-8"> 

or

 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> 

and in the stylesheet (note, there should be a first line, first column):

 @charset "utf-8"; 

or

Awesome font to your site with one line of code. You don’t even need to download or install anything!

Paste the following code into the HTML section of your site.

 <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> 

Most likely, font files were not found. If you look at the awesome CSS file font, you will probably see something like:

  @font-face { font-family: 'FontAwesome'; src: url('../font/fontawesome-webfont.eot'); } 
+7
source

Add this to your web.config:

 <system.webServer> <staticContent> <remove fileExtension=".svg" /> <remove fileExtension=".eot" /> <remove fileExtension=".woff" /> <remove fileExtension=".woff2" /> <mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" /> <mimeMap fileExtension=".woff" mimeType="application/font-woff" /> <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" /> </staticContent> system.webServer> 
0
source

Source: https://habr.com/ru/post/1200193/


All Articles