简体   繁体   English

FA 图标没有出现在我的 html 项目的第二页中。 怎么修?

[英]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.

相关问题 如何在多个按钮上切换相同的 fa fa 图标? - How do I toggle the same fa fa icons on multiple buttons? 我正在为我的项目进行分页。 如何通过下拉选项中的用户选择获取每页的记录数? - I'm working on pagination for my project. How do I get the number of records per page through user selection from drop-down option? 我正在使用 Mamp,所以我可以将 phpAdmin 用于我的 react native 项目。 如何修复根文件夹 - I'm using Mamp so I can use phpAdmin for my react native project. How can I fix the root folder 尝试编译我的反应项目时收到大量错误。 我完全不知道这意味着什么或如何开始修复它 - Recieving an influx of errors when trying to complie my react project. I quite literally have no idea what it means or how to begin to fix it 我无法在我的反应项目中导入 fontawesome 图标。 (reactv6) - I cannot import fontawesome icons in my react project. (reactv6) 如何使隐藏的HTML仅显示在单击时的弹出窗口中,而不显示在页面的其他位置? - How do I get hidden HTML to appear only in my popover on click, not elsewhere on the page? 如何修正我的文字使其显示在一行上? - How do I fix my text to make it appear on one line? 如何让我的照片幻灯片在页面打开时出现,而不是在我单击点 HTML CSS JavaScript 时出现? - How do I make my slideshow of Photos appear when the page opens, instead of when I click the dots, HTML CSS JavaScript? 在 vercel 上部署我的 next.js 项目,找不到模块“react-icons/Fa”或其相应的类型声明 - deploy my next.js project on vercel, Cannot find module 'react-icons/Fa' or its corresponding type declarations 如何修复我的 api 项目的 429 请求错误? - How do I fix a 429 request error for my api project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM