[英]how to use local font awesome?
I download the font awesome library to my local directory, and put them as following directory: 我将字体真棒库下载到我的本地目录,并将它们放在以下目录中:
index.html
css/font-aswesome.min.css
font/fontawesome-webfont.xxx
And here is my index.html. 这是我的index.html。
<html>
<head>
<meta charset="UTF-8">
<title>Font-Awesome</title>
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="css/font-awesome.min.css" type="text/css">
</head>
<body>
<i class="fa fa-camera-retro fa-lg"></i> fa-lg
</body>
</html>
and open index.html, there is no font awesome css style implement here. 并打开index.html,这里没有字体很棒的CSS样式实现。 But after I replace to use CDN link to replace the local href, everything works fine.
但是在我替换使用CDN链接替换本地href之后,一切正常。 Anyone can help me to how to make font-awesome use local copy?
任何人都可以帮助我如何使字体超赞使用本地副本?
follow the following steps: 请按照以下步骤操作:
1. Download the font-awesome package from their website.
2. Extract the package where you will find the `font-awesome.css` file.
3. Copy this file to your `CSS` directory.
4. Copy all the fonts files from the extracted font-awesome package to your fonts folder.
5. Finally, add the `font-awesome.css` to your HTML page by giving the respective location of the CSS file.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.