Comment mettre un background image à un Accordion ?
Bonjour,
je voudrais ajouter un background image aux headers de mon Accordion, voilà mon code qui ne marche :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| Accordion {
headerStyleName: "myaccordionHeader";
headerHeight: 20;
}
.myaccordionHeader {
color: blue;
background-image:"/asset/img/background.png";
height:20pt;
}
<mx:Accordion id="accordion" bottom="0" width="100%" openDuration="50" >
<!-- Define each panel using a VBox container. -->
<mx:VBox label="Accordion Button for Panel 1">
<mx:Text htmlText="xx" />
</mx:VBox>
<mx:VBox label="Accordion Button for Panel 2">
<mx:Text htmlText="xx" />
</mx:VBox>
<mx:VBox label="Accordion Button for Panel 3">
<mx:Text htmlText="xx" />
</mx:VBox>
</mx:Accordion> |
Toutes les styles sont appliqués sauf le backgroud image.. Quelqu'un pourrait m'aider ? merci !