更改 Flex 4 FormItem 的标签颜色
想知道是否有办法更改 Spark FormItem 组件中标签的颜色。我尝试了这个:
@namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; s|FormItem s|Label#labelDisplay { color: #333333; background-color: #FFFFFF; font-size: 30; }
所有样式都效果很好,除了字体颜色,由于某种原因它保持黑色。我将非常感谢任何解决此问题的帮助。
Wonder if there is a way to change color for a label in Spark FormItem component. I tried this:
@namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; s|FormItem s|Label#labelDisplay { color: #333333; background-color: #FFFFFF; font-size: 30; }
and all of the styles work great, except the font color, which stays black for some reason. I would greatly appreciate any help resolving this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅 Peter DeHaan 对我的问题“我们是否需要 Spark FormItem 类的等效“labelStyleName”属性?”的回答。 http://forums.adobe.com/thread/759374?tstart=0
“因为颜色和 fontWeight 是在默认 Spark FormItem 皮肤中声明的,所以我相信如果您想覆盖这些样式,您将必须创建自定义皮肤。”
See the answer from Peter DeHaan on my question "Do we need the equivalent of "labelStyleName" property for Spark FormItem class?" http://forums.adobe.com/thread/759374?tstart=0
"Because the color and fontWeight are declared in the default Spark FormItem skin, I believe you will have to create a custom skin if you want to override those styles."