繁体   English   中英

使用 jdeveloper 在 xhtml 中使用 FontAwesome 时出错

[英]error while using FontAwesome with xhtml using jdeveloper

我正在尝试在我的.xhtml页面上使用font-awesome ,但出现如下图所示的错误。

我正在使用 Jdeveloper 12.2.1

我在这里阅读了很多主题,但找不到任何帮助的解决方案?

在此处输入图片说明 编辑 :

当我使用.html而不是.xhtml文件时,项目运行良好,

所以问题不会因为错误的路径而发生。

我认为仍然缺少一些配置

当我在href开头添加../或通过添加

#{facesContext.externalContext.requestContextPath}

<h:head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>login</title>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <link rel="icon" type="image/png" href="images/favicon.ico"/>
    <link rel="stylesheet" type="text/css" href="../vendor/bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="../css/font-awesome.css"/>
    <link rel="stylesheet" type="text/css" href="../vendor/animate/animate.css"/>
    <link rel="stylesheet" type="text/css" href="../vendor/css-hamburgers/hamburgers.min.css"/>
    <link rel="stylesheet" type="text/css" href="../vendor/select2/select2.min.css"/>    
    <link rel="stylesheet" type="text/css" href="../css/util.css"/>
    <link rel="stylesheet" type="text/css" href="../css/main.css"/>
</h:head>

暂无
暂无

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

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