开发者

Flex: css question

I have class com.company.project.views.SomeClass. I have

<mx:Form id="form">
    <mx:FormItem>
        <s:Label/>
    &开发者_如何学Clt;/mx:FormItem>
    <mx:FormItem>
        <s:Label/>
    </mx:FormItem>
    <mx:FormItem>
        <s:Label/>
    </mx:FormItem>
</mx:Form>

in it. How can I set color to every Label in my form (the same color for all) via CSS? Thanks


Try something like the following:

mx|FormItem s|Label
{
    color:red;
}

Or even to narrow:

mx|Form#form mx|FormItem s|Label
{
    color:red;
}

You can read more about available selector here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜