首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在spark textarea中设置图像样式

在spark textarea中设置图像样式
EN

Stack Overflow用户
提问于 2012-08-01 07:01:04
回答 1查看 210关注 0票数 3

example显示如何在spark TextArea中包含图像,并设置其floatpaddingLeft/paddingRight属性:

代码语言:javascript
复制
<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指定图像的浮动/填充

EN

回答 1

Stack Overflow用户

发布于 2012-08-15 17:25:34

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

1)创建包含此图像和那些属性的外观(填充)

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

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11750263

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档