Flex 中标签的字体大小不同?
我想在标签中显示一组类似 “DISCONTINUED (02-02-2012) Crocin” 的文本。但我需要较小的日期字体大小。如何将值设置为标签,以便我可以显示较小尺寸的日期字体。
我只需要为标签分配一个字符串?像这样“停产(02-02-2012)Crocin”
这在flex中可能吗?
I would like to display a set of Text like this "DISCONTINUED (02-02-2012) Crocin" in label. But i need smaller font size for Date. How can I set the value to Label so that I can display smaller size font for Date.
I only need to assign a single string to label? like this "DISCONTINUED (02-02-2012) Crocin"
Is this possible in flex?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 FLEX 中可以通过两种方式实现。
(1)
(2)
在文本区域嵌入 htmlText 并按如下方式更改 CSS 文件,使其感觉像标签。将其可选择和可编辑属性更改为 false,并且不要忘记给出高度和宽度。
有关更多 CSS 更改,请访问此链接
祝你有美好的一天
its possible in FLEX by 2 ways.
(1)
(2)
Embed htmlText in Text area and change the CSS file as follows to feel like a Label. Change its selectable and editable property to false and don't forget to give height and width.
For more CSS changes visit THIS LINK
Have a nice Day
是的,这是可以做到的。查看 Adobe LiveDoc 中的此文档:
http:// /livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_04.html
Yes this can be done. Take a look at this document from Adobes LiveDoc:
http://livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_04.html
您也可以在标签中添加 htmlText。
You can also bring htmlText in label also.