Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.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
Css panelGrid的背景色不为';不出现在谷歌浏览器中_Css_Google Chrome_Primefaces_Jsf 2.2 - Fatal编程技术网

Css panelGrid的背景色不为';不出现在谷歌浏览器中

Css panelGrid的背景色不为';不出现在谷歌浏览器中,css,google-chrome,primefaces,jsf-2.2,Css,Google Chrome,Primefaces,Jsf 2.2,我注意到panelGrid primesfaces元素的背景色出现在internet explorer浏览器中,与google chrome浏览器不兼容。谁能帮帮我 <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transition

我注意到panelGrid primesfaces元素的背景色出现在internet explorer浏览器中,与google chrome浏览器不兼容。谁能帮帮我

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
<p:panelGrid style="height:200px;width:100%;background-color:#E9F3FF">

    </p:panelGrid>

</h:body>
</html>


CSS不会基于服务器端视图技术的源代码运行。CSS基于服务器生成的HTML输出运行。更新您的问题以删除JSF源代码并包含JSF生成的HTML输出(在MCVE风格中!)。通过这种方式,
[css]
用户只需将问题作为
.html
文件运行,就可以重现问题,并解释原因并回答解决方案。请查看chrome developer工具的后台使用内容。可能只是因为chrome的行为正确,而你很幸运IE没有这样做。@BalusC:我同意,但这并不能解释为什么IE“工作”而chrome没有。@Kukeltje:这不是JSF的问题。@BalusC:a,那样的话,我想你是说它以错误的方式包含在PrimeFaces标记中