AS2 css字体消失
我继承了一个用 AS2 编写的项目。它以编程方式创建文本字段并填充它们。它指的是样式表,其中样式表为 font-style:italic;
一切都以斜体显示就好。但我被要求将其更改为正常。当我将其更改为 font-style:normal;在样式表中,文本消失。并且在代码中,它引用 htmlText 作为文本字段的属性。
有谁知道这可能是由于什么原因造成的?起初我想也许嵌入字体,但如果应用了样式并且它是 htmlText 那不是没有必要吗?
谢谢。
I've inherited a project written in AS2. It programatically creates textfields and populates them. It refers to a stylesheet, and in that stylesheet is font-style:italic;
Everything shows in italic just fine. But I've been asked to change it to normal. WHen I change it to font-style:normal; in the stylesheet, the text disappears. And in the code, it refers to htmlText as the property of the textfield.
Anyone know what this could be due to? At first I was thinking maybe embed the font, but if a style is being applied and it's htmlText wouldn't that be unnecessary?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我试图重现你的问题......
但它似乎对我来说工作得很好。您对 TextFields 做了什么额外的事情吗,比如嵌入字体或其他什么?
尝试嵌入时,快速谷歌显示许多听起来相似的问题 html 文本字段的字体。
希望这有帮助。
I tried to reproduce your problem...
... but it seems to work fine for me. Is there anything extra that you're doing with your TextFields, like embedding fonts or anything?
A quick google shows lots of similar-sounding issues when trying to embed fonts for html textFields.
Hope this helps.