AS3错误?换行CSS标签后会自动进入 [英] AS3 bug? Newline automatically entered after css tag
问题描述
我呈现文本字段(闪光CS5)具有以下CSS和HTML属性:
I am rendering a TextField (Flash CS5) with the following css and html properties :
css = "a {font-weight: bold;} fu {color: #00A0A0;}"
wordWrap = true
multiline = true
html = <![CDATA["Phoenicians were pioneering artisans and ingenious craftsmen…
They developed the technique behind the production of transparent glass…
Their innovation spread around the globe throughout the past centuries…
<fu>WE AIM TO CARRY ON WITH THE INNOVATION</fu>"]]>
最后一个引号是在一个线下方呈现的我们的目标是......。是这样的呈现:
The last QUOTE is rendered in a line BELOW "WE AIM TO...". It's rendered like this :
...
我们的目标是继续按照创新
WE AIM TO CARRY ON WITH THE INNOVATION
只有这样,才能使在同一行的报价我们的目标......是:
The ONLY way to render the quote in the same line with "WE AIM..." is to :
一)无论是将其放在&LT;福&GT;
b)或删除&LT;福&GT;
完全
这是一个Flash漏洞?我做得不对的CSS或HTML?
Is this a Flash bug? Am I doing something wrong with css or html?
在预先感谢,
比尔
推荐答案
而不是去复杂的跨越的方式,只需添加这在你的CSS说明:
Instead of going the complex "span" way, just add this in you css description:
CSS =一个{字体重量:大胆;} {复色:#00A0A0; 显示:内联; 的}
css = "a {font-weight: bold;} fu {color: #00A0A0; display:inline;}"
这篇关于AS3错误?换行CSS标签后会自动进入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!