[英]FA icons do not appear in second page of my html project. How to fix?
I am making a project with multiple html pages.我正在制作一个包含多个 html 页面的项目。 Currently I have "index.html" and "addAccount.html," whenever I try to add a link to the head of the second file, it is not underlined and does not appear in blue.
目前我有“index.html”和“addAccount.html”,每当我尝试向第二个文件的头部添加链接时,它没有下划线,也没有显示为蓝色。 As such, I included this in the head:
因此,我将其包含在头中:
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
to gain access to the fa icons but for some reason, I can only include the fa icons that I have already included in my other page in this one (for example, I used <i class="fa fa-caret-down"></i>
in "index.html" and I can use it in "addAccount.html", but I cannot use any other icon - even the free ones - in "addAccount.html").要访问 fa 图标,但由于某种原因,我只能在此页面中包含我已经包含在我的其他页面中的 fa 图标(例如,我使用了
<i class="fa fa-caret-down"></i>
在“index.html”中,我可以在“addAccount.html”中使用它,但我不能在“addAccount.html”中使用任何其他图标 - 甚至是免费图标)。 What I missing?我错过了什么? Appreciate the help.
感谢帮助。
You need to include the script before using it.您需要在使用之前包含该脚本。 Also, you need to classify what is the type you're refering: brand - regular - solid
此外,您需要对您所指的类型进行分类:品牌 - 常规 - 固体
In this example, I've tried with solid style (notice the s
character): fas fa-caret-down
在此示例中,我尝试了纯样式(注意
s
字符): fas fa-caret-down
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/js/all.min.js"></script> <i class="fas fa-caret-down"></i>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.