Accordion头部文字居中显示

 

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx">
 <fx:Declarations>
  <!-- 将非可视元素(例如服务、值对象)放在此处 -->
 </fx:Declarations>
 
 <fx:Style>
  @namespace s "library://ns.adobe.com/flex/spark";
  @namespace mx "library://ns.adobe.com/flex/mx";
    
  mx|AccordionHeader{
   textAlign:center;
  }
 </fx:Style>
  <mx:Accordion x="250" y="31" width="174" height="180">
  <s:NavigatorContent width="100%" height="100%" label="可折叠窗格 1">
  </s:NavigatorContent>
  <s:NavigatorContent width="100%" height="100%" label="可折叠窗格2">
  </s:NavigatorContent>
 </mx:Accordion>
 
 
</s:WindowedApplication>

你可能感兴趣的:(Accordion头部文字居中显示)