E-mail Comment Del.icio.us Digg Reddit Technorati Furl

FLEX中表单验证提示的标记字号设置

如图所示,上面的这个提示,9号字的中文很难看,昨天晚上我郁闷了很久,经过论坛中兄弟的提示,要定义一下.errorTip式样.

.errorTip {
 fontSize: 12;
}

上面的代码,即是表示定义提示标签的字号定义为12号字.
然后,我查了下flex的帮助,才了解到,ErrorTip是把式样定义为errorTip的ToolTip的实例.其默认的式样定义为.

.errorTip {
    color: #FFFFFF;
    fontSize: 9;
    fontWeight: "bold";
    shadowColor: #000000;
    borderColor: #CE2929;
    borderStyle: "errorTipRight";
    paddingBottom: 4;
    paddingLeft: 4;
    paddingRight: 4;
    paddingTop: 4;
}

这个样式定义在framework.swc文件中defaults.css中,如果想对其式样进行更改,只需要重定义一下.errorTip的式样即可.

One Response to “FLEX中表单验证提示的标记字号设置”

  1. 海派 Says:

    不错,学习了。。


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">