3

このは、spark TextAreaに画像を設定し、それらのfloatおよびpaddingLeft/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のCSSを介して画像のフロート/パディングを指定することは可能ですか?

4

1 に答える 1

0

はい、cssを介して画像を指定することが可能です:

1)この画像とそれらのプロパティを含むスキンを作成する(パディング)

2)ファイルcssの作成には、コンポーネントの名前空間と呼び出しクラス参照(パラメータースキンとして渡されるクラス)が含まれます

3)ファイルmxmlで、手順1で指定した名前空間と等しいスタイル名を定義します。

于 2012-08-15T09:25:34.367 に答える