我尝试使用 css 文件自定义火花数据网格。我对 alterItemColors 属性有疑问,因为所有线条都是白色的。相同的代码适用于 mx|DataGrid
s|DataGrid
{
backgroundAlpha: 0.6;
borderThickness: 1;
borderColor: #0085Ac;
/* Couleur de la zone de titre */
/*headerColors: #006699, #6ea4f8;*/
headerColors : #6db8e0, #50a3ce;
horizontalGridLines: false;
verticalGridLines: true;
verticalGridLineColor: #003366;
alternatingItemColors: #ffffff, #eeeeee;
rollOverColor: #b3b7d9;
textRollOverColor: #0c1e37;
selection-color:#66B0C0;
color :#0c1e37;
headerStyleName: "mydataGridHeaderStyle";
}
感谢您的帮助