开发者

Flex: css question

开发者 https://www.devze.com 2023-03-06 12:58 出处:网络
I have class com.company.project.views.SomeClass. I have <mx:Form id=\"form\"> <mx:FormItem>

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

精彩评论

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