Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf PrimeFaces css未正确加载_Jsf_Primefaces - Fatal编程技术网

Jsf PrimeFaces css未正确加载

Jsf PrimeFaces css未正确加载,jsf,primefaces,Jsf,Primefaces,我在我的maves项目中添加了PrimeFaces依赖项,除了css之外,其他一切都很好。例如,我试图在我的项目中重现这个面板(),一切正常,但css样式显示不好 以下是我的结果: 这是我的密码: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="ht

我在我的maves项目中添加了PrimeFaces依赖项,除了css之外,其他一切都很好。例如,我试图在我的项目中重现这个面板(),一切正常,但css样式显示不好

以下是我的结果: 这是我的密码:

    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.org/ui">

    <h:head>

    </h:head>

    <h:body>
      <p:ribbon>

 <!-- Here is the code from the link from above  -->

</p:ribbon>
    </h:body>
</html>


如果项目中没有png或任何所需图标,则会出现此问题。请检查谷歌开发工具中的代码,并向我们发送此特定链接的屏幕截图。

CSS看起来不错,很可能是图标/字体问题。。。使用浏览器开发工具检查问题似乎是颜色和边框样式加载不正确。但我不知道为什么..用浏览器开发工具检查..我看到边框,颜色…如果你在页面中添加
p:inputText
,会怎么样?就像评论中已经说明的那样。。。(除了浏览器开发工具的屏幕截图,因为OP应该检查内容,而不是逐字逐句地发布);-)