bootstrap 主题中没有显示很棒的字体,我正在使用 Eclipse

font awesome not showing from bootstrap theme and im using eclipse

我只是一个新手,我正在尝试使用代理启动 bootstrap 主题。我正在使用 Eclipse,我试图修改 home.jsp 以找到 css 和脚本,但字体真棒和字形没有显示。这就是我所做的。

<!-- Bootstrap Core CSS -->
<style type="text/css"><%@include file="resources/css/bootstrap.min.css" %></style> 

<!-- Custom CSS -->
<style type="text/css"><%@include file="resources/css/agency.css" %></style>


<!-- Custom Fonts -->
 <style type="text/css"><%@include file="resources/font-awesome/css/font-awesome.min.css" %></style>

我希望你能帮助我,因为我尝试在网上搜索解决方案,但我找不到有用的解决方案。谢谢

您需要在项目根目录中包含 font-awesome 文件夹,它有一个 css 用来包含图标的 fonts 文件夹。

<!-- Custom Fonts -->
 <style type="text/css"><%@include file="/font-awesome/css/font-awesome.min.css" %></style>

我放弃了追踪它所在的位置

<!-- Custom Fonts -->
<style type="text/css"><%@include file="resources/font-awesome/css/font-awesome.min.css" %></style>

我试着把源码放到网上,它成功了, 这是我的解决方案:

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