如何在图像周围包裹一些文字?
在flex中,我有HBox,我在其中加载了图像。我想在它周围环绕文字。因此,右侧将有图像,左侧将有文本。清除图像后,文本将以 100% 的宽度显示。
我怎样才能实现它?
In flex, I have HBox in which I have loaded an image. I want to wrap text around it. Hence, there would be an image on right and text will be on left. After the image is cleared, text will be displayed 100% of the width.
How can I achieve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然你所描述的内容很容易用 HTML 实现。我认为 Flex 中的 htmlText 属性只支持简单的 HTML。
您需要了解 Flex 的 文本布局框架。
编辑:尽管我最初声称, htmlText 属性实际上确实支持具有align 属性的img 标签。它记录在此处
Although what you describe is easy to do with HTML. I didn't think the htmlText property in Flex supported anything more than simple HTML.
You'll want to look into the Text Layout Framework for Flex.
Edit: Despite my initial claim, the htmlText property actually does support the img tag with align property. It is documented here