我有两个adf表和一个用于table.Now的应用皮肤,它显示了两个tables.My的剥皮要求,就是在adf应用程序中对多个表中的一个表进行only.How的剥皮。
//我的css文件--这是我用来为adf行获取可选背景色的代码,我只想要一个表。
af|table::data-row af|column::data-cell{
background-color:rgb(234,255,252);
}
af|table::data-row af|column::banded-data-cell{
background-color:White;
}
af|column::column-header-cell
{
color: Black;
font-weight: bold;
}
// trinidad-skins.xml
<?xml version="1.0" encoding="windows-1252"?>
<skins xmlns="http://myfaces.apache.org/trinidad/skin">
<skin>
<id>skin.desktop</id>
<family>skin</family>
<extends>fusionFx-v1.desktop</extends>
<render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
<style-sheet-name>skins/tablerowcolor.css</style-sheet-name>
</skin>
</skins>
// trinidad-config.xml
<?xml version="1.0" encoding="windows-1252"?>
<trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
<!--<skin-family>skyros</skin-family>
<skin-version>v1</skin-version>-->
<skin-family>skin</skin-family>
</trinidad-config>发布于 2013-12-02 23:35:45
使用CSS类对特殊表进行样式化,并在不使用样式的情况下省略默认值。
例如,将代码更改为:
af|table.stylesTable::data-row af|column::data-cell{
background-color:rgb(234,255,252);
}
af|table.stylesTable::data-row af|column::banded-data-cell{
background-color:White;
}
af|column.stylesTable::column-header-cell
{
color: Black;
font-weight: bold;
}在您的JSPX或JSF中,将表的styleClass更改为stylesTable,并且不要在不希望样式的表中输入任何内容。
https://stackoverflow.com/questions/20329707
复制相似问题