【发布时间】:2019-10-18 08:20:44
【问题描述】:
我正在使用 JSF 和 NetBeans 8.2 完成我今年的最后一个大学项目。但是我有一个css问题。当我登录时,我使用此行保存类别:
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("categoria", cat);
这很好,我调试它。 在这种情况下,它会将我重定向到我的类别的主页: image of page with css 然后我按主菜单按钮,它会将我重定向到我的类别Main menu botton 的主页,这就是错误,第一张图片的同一页没有css same page of picture one, without css。链接工作正常,页面有 css,但是当我返回时 css 不起作用。 本主页头:
<h:head>
<link href="../resources/css/main.css" rel="stylesheet" type="text/css"/>
<link href="../resources/css/bootstrap-4.3.1-dist/css/bootstrap.css" rel="stylesheet" type="text/css"/>
<title>Gestionar Plan Anual Departamento</title>
<meta charset="UTF-8"></meta>
<meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
</h:head>
对不起,我的英语不好,提前谢谢。
【问题讨论】:
标签: css jsf netbeans xhtml netbeans-8