Css 在spark textarea中设置图像样式

Css 在spark textarea中设置图像样式,css,apache-flex,textarea,flex4,flex-spark,Css,Apache Flex,Textarea,Flex4,Flex Spark,这显示了如何在spark文本区域中显示图像,并设置图像的浮动和左填充/右填充属性: <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

这显示了如何在spark文本区域中显示图像,并设置图像的
浮动
左填充
/
右填充
属性:

<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>   

流中的图像是一件好事。例如,这里有一个浮点数。
你不同意吗?它应该显示在左边。如果它没有出现在左边,那么它就是一个bug。你可以在http://bugs.adobe.com/jira/. 您可以设置浮动在内部的定位方式
使用下面的组合框来编辑段落。您可以选择左、右、开始、结束或无。此示例不使用clearFloats属性。这是另一个例子。

可以通过css指定图像的浮动/填充吗?

可以通过css指定图像:

1) 创建包含此图像和这些属性(填充)的蒙皮

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

3) 在文件mxml中定义与步骤1中指定的名称空间相等的样式名称