gpt4 book ai didi

css - 在 spark textarea 中设置图像样式

转载 作者:行者123 更新时间:2023-12-02 05:05:58 24 4
gpt4 key购买 nike

example展示了如何在 spark TextArea 中放置图像并设置它们的 floatpaddingLeft/paddingRight 属性:

<s:RichEditableText id="myRET1" width="300">
<s:textFlow>
<s:TextFlow columnWidth="290">
<s:p id="p1">Images in a flow are a good thing. For example, here is a float.
<s:img id="image1" float="none" source="@Embed(source='../assets/bulldog.jpg')" paddingRight="10" paddingTop="10" paddingBottom="10" paddingLeft="10">
</s:img>
Don't you agree? It should show on the left. If it doesn't show up on the left, then it is a bug. You can submit bugs at http://bugs.adobe.com/jira/. You can set how the float is positioned within
the paragraph by using the ComboBox below. You can select left, right, start, end, or none. This example does not use the clearFloats property. That is in a different example.</s:p>
</s:TextFlow>
</s:textFlow>
</s:RichEditableText>

是否可以通过 Flex's CSS 指定图像的 float /填充?

最佳答案

是的,可以通过 css 指定图像:

1)创建一个皮肤包含这个图像和那些属性(填充)

2)创建包含组件命名空间的css文件和调用类引用(作为参数传递的类皮肤)

3) 在文件 mxml 中定义样式名称等于步骤 1 中指定的 namespace

关于css - 在 spark textarea 中设置图像样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11750263/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com