简体   繁体   English

如何在断开连接的环境中使用超赞字体?

[英]how to use font-awesome in a disconnected environment?

I need to support my application in environment without access to the internet, it runs on intranets only. 我需要在无法访问Internet的环境中支持我的应用程序,它仅在Intranet上运行。 This means that I can use the font-awesome in the following fashion: 这意味着我可以按以下方式使用超赞字体:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

how do I go about using this font? 我该如何使用这种字体? I also see that I can install the npm package, but I still dont see the font, using an arrow, being displayed. 我还看到可以安装npm软件包,但是仍然看不到使用箭头显示的字体。

Any insights? 有什么见解吗?

You can just download the Font Awesome source and link the href to your local directory. 您可以直接下载Font Awesome源并将href链接到本地​​目录。 Here's a link to the latest version: http://fontawesome.io/assets/font-awesome-4.7.0.zip 这是最新版本的链接: http : //fontawesome.io/assets/font-awesome-4.7.0.zip

You can download the font-awesome file in your system. 您可以在系统中下载真棒字体文件。 Provide them a path and refer them where you want to use it. 给他们提供一个路径,并在您要使用的地方推荐他们。

Currently you are accessing them through CDN. 当前,您正在通过CDN访问它们。

here: http://fontawesome.io/ 此处: http//fontawesome.io/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM