flex 表格AdvancedDataGrid标题颜色

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx">
 
 <s:layout>
  <s:VerticalLayout paddingTop="10"
        paddingRight="10"
        paddingBottom="10"
        paddingLeft="10" />
 </s:layout>
 <fx:Style>
  @namespace s "library://ns.adobe.com/flex/spark";
  @namespace mx "library://ns.adobe.com/flex/mx";
  .headerStyle
  {
   color: #FF0000;
   fontWeight: bold;
  }
 </fx:Style>
 <mx:DataGrid width="100%" height="100%" headerStyleName="headerStyle">
  <mx:columns>
   <mx:DataGridColumn headerText="Header 1" />
   <mx:DataGridColumn headerText="Header 2" />
  </mx:columns>
 </mx:DataGrid>
 <mx:AdvancedDataGrid width="100%" height="100%" headerStyleName="headerStyle">
  <mx:columns>
   <mx:AdvancedDataGridColumn headerText="Header 1" />
   <mx:AdvancedDataGridColumn headerText="Header 2" />
  </mx:columns>
 </mx:AdvancedDataGrid>
</s:Application>

©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页