Apply color and font style to a Button with CSS : Style Color « Style « Flex






Apply color and font style to a Button with CSS

Apply color and font style to a Button with CSS
       


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Style>
            .example {
                color: red;
                font-style: italic;
            }

    </mx:Style>
     <mx:Button label="Example" styleName="example" />
</mx:Application>

   
    
    
    
    
    
    
  








Related examples in the same category

1.VGA color name for CSS style definitions and tag supportVGA color name for CSS style definitions and <mx:Style> tag support
2.CSS style definitions and the tag support hexadecimal color and color name value formatsCSS style definitions and the <fx:Style> tag support hexadecimal color and color name value formats
3.Convert color style to StringConvert color style to String
4.Define custom color and line style for the bubblesDefine custom color and line style for the bubbles
5. tag styles specify blue, italic, 14 point text, and the tag includes HTML tags that override the color and point size.<mx:Text> tag styles specify blue, italic, 14 point text, and the <mx:htmlText> tag includes HTML tags that override the color and point size.
6.Use the errorTip style to change the colorUse the errorTip style to change the color
7.Assign color value to Number type variableAssign color value to Number type variable
8.Get colorGet color