我正在尝试取消加粗表单项中的标签。如您所见,标签以编程方式对颜色更改做出反应,但不受 fontWeight 属性更改的影响。有人有建议吗?
谢谢你。
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Style>
@namespace mx "library://ns.adobe.com/flex/mx";
@namespace s "library://ns.adobe.com/flex/spark";
global {
font-family: Verdana;
fontWeight: normal;
}
s|Label#labelDisplay {
color: red;
fontWeight:normal;
}
</fx:Style>
<s:Form>
<s:FormItem label="Please enter a string:" fontWeight="normal">
<s:TextInput/>
</s:FormItem>
</s:Form>
</s:Application>