0

我尝试使用 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";
    }

感谢您的帮助

4

1 回答 1

0

看起来 Spark DataGrid 中的样式名称已更改。它现在有一个名为alternateRowColors的样式

于 2012-05-22T21:24:09.403 回答