- <mx:Style source=‘/css/myStyle.css‘/>
- <global-css-url>/WEB-INF/flex/global.css</global-css-url>
- <global-css-url>/css/styles.css</global-css-url>
- <mx:Style>
- .
myFontStyle { fontSize: 15 }
- </
mx:Style>
- <
mx:Button id=‘myButton‘ styleName=‘myFontStyle‘ label=‘Click Here‘ >
- <mx:Style>
Button { fontSize: 15 }
- </
mx:Style>
- <
mx:Button id=‘myButton‘ label=‘Click Here‘ >
- <mx:Button id=‘myButton‘ fontSize=‘15‘ color=‘0x9966CC‘ label=‘My Button‘/>
- <mx:Script>
- <![
CDATA[
//使用styleManger类
mx.styles.StyleManager.styles.ToolTip.fontWeight = ‘bold‘;
//获取组件样式
lb1.text=ip1.getStyle(‘fontSize‘);
//设置组件样式
lb1.text=ip1.setStyle(‘fontSize‘,newSize);
- ]]>
- </
mx:Script>
- global {
fontSize:22;
textDecoration: underline;
- }
- Application {
marginLeft: 0px;
marginRight: 0px;
marginTop: 0px;
marginBottom: 0px;
horizontalAlign: ‘left‘;
- }
- .myClass {
fontFamily: Arial, Helvetica, ‘_sans‘;
color: Red;
fontSize: 22;
fontWeight: bold;
- }
- <mx:Style>
- @
font-face {
src:url(‘akbar.ttf‘);
fontFamily: myfont;
- }
- @
font-face {
src:url(‘akbar.ttf‘);
fontWeight: bold;
fontFamily: myfontBold;
- }
- </
mx:Style>
- Accordion {
fontFamily: myfont
-
}
联系客服