开发者

my html text is not displaying in Flex

I'm getting nothing with this:

mainAns.htmlText = '<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="开发者_运维百科#0B333C" LETTERSPACING="0" KERNING="0">The differen <B>is</B></FONT></P></TEXTFORMAT>';

Maybe it has something to do with the quotes? the text will be retrieved from a database. I dont see what I am doing wrong

EDIT:

I think it's the way I calculate the number of lines in the string... How would I calculate the amount of lines using rich text?


try this one:

mainAns.htmlText = ='<![CDATA[
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">The differen <B>is</B></FONT></P></TEXTFORMAT>
]]>';

How would I calculate the amount of lines using rich text?

why do you need this?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜