Richfaces样式类重定义 [英] Richfaces style classes redefinition

查看:125
本文介绍了Richfaces样式类重定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了一整天,不能改变富:面板样式类。这是页面:

 <!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:ui =http://java.sun.com/jsf/facelets
xmlns:h =http://java.sun.com/jsf/html
xmlns:f =http://java.sun.com/jsf/core
xmlns:rich =http://richfaces.org/rich>
< h:head>
< title>测试< / title>
< style type =text / css>
.rich-panel {
border:0px;
background:blue;

}
.rich-panel-body {
border:0px;
background-color:blue;
color:orange;
font-size:32px;
}
< / style>
< / h:head>
< h:body>
< rich:panel>
< p> Hello world!< / p>
< / rich:panel>

< / h:body>
< / html>

结果与未添加样式类相同。


<要改变Richfaces 4.x的rich:面板的样式类,我们必须使用rf-p,.rf-p-hdr和.rf-pb类。例如:

  div.rf-p {
border:5px;
background:blue;
}

div.rf-p-b {
border:0px;
background-color:blue;
color:orange;
font-size:32px;
}


I spend all day and can't change rich:panel style class. This is the page:

    <!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:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:rich="http://richfaces.org/rich">
<h:head>
    <title>Test</title>
    <style type="text/css">
    .rich-panel{
        border: 0px;
        background: blue;

     }
     .rich-panel-body {
        border: 0px;
        background-color: blue;
        color: orange;
        font-size: 32px;
     }
    </style>
</h:head>
<h:body>
    <rich:panel>
        <p>Hello world!</p>
    </rich:panel>

</h:body>
</html>

And the result is the same as without adding style classes.

解决方案

To change style classes of the rich:panel for Richfaces 4.x we must use rf-p, .rf-p-hdr and .rf-p-b classes. For example:

div.rf-p{        
 border: 5px;        
 background: blue;       
}      

div.rf-p-b {         
 border: 0px;         
 background-color: blue;        
 color: orange;        
 font-size: 32px;      
}

这篇关于Richfaces样式类重定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆