Flex4 中 borderContainer 控件的樣式設置


不管怎么樣,努力學習吧。

今天記錄下borderContainer 控件的一些樣式。

【AS3中的寫法】

[Bindable]                 
[Embed("images/bg.png")]               
private var red:Class;  
private var myContainer:BorderContainer = new BorderContaine();  
myContainer.setStyle("borderVisible",false);//去掉邊框線   
myContainer.setStyle("backgroundColor","0xff0000");//設置背景色  
myContainer.setStyle("backgroundImage",red);//設置背景圖片 

 【CSS中的寫法】

【CSS中的寫法】
s|BorderContainer{
    backgroundImage: Embed('images/bg.png');
    fontSize:12px; 
}

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM