2009-02-17 60 views

回答

0

FONT標籤是容易

3

使用flash.text.StyleSheet

var style:StyleSheet = new StyleSheet(); 
var underline:Object = new Object(); 
underline.fontWeight = "bold"; 
underline.color = "#FF0000"; 
underline.display = "inline"; 

style.setStyle("u", underline); 

textField.styleSheet = style; 
textField.htmlText = "blaa blaa" + "<u>"+w+"</u>"+"blaa blaa" 
+0

感謝,但現在有一個奇怪的LINEFEED後+ W +的樣式引起的? – Tom 2009-02-17 14:18:59

相關問題