GWT-Ext中MASK的CSS样式问题

悬赏:5 发布时间:2008-07-26 提问人:villim (初级程序员)

在官方文档中,有这么一个mask方法
引用
public ExtElement mask(java.lang.String msg,
java.lang.String msgClass)
Puts a mask over this element to disable user interaction. This method can only be applied to elements which accept child nodes.

Parameters:
msg - a message to display in the mask
msgClass - a css class to apply to the msg element
Returns:
the mask element


根据文档,第二个参数可以控制msg的样式。
不过我尝试直接使用已有CSS文件里的样式或者直接输入“color:#ff0000”之类都无法改变输入的字符串格式。
请问是什么问题?应该如何使用?谢谢。
问题补充:
To yongyuan.jiang :

不知道你是否有测试过,如同我问题中描述的,不论是定义在css文件中,还是直接写我都没有成功。另外,直接写GWT是可以接受的。
该问题已经关闭: 超过15天由系统自动关闭,悬赏平分给所有参与回答的会员

回答

msgClass - a css class to apply to the msg element
直接输入color:肯定是不行的。应该是css定义class如.MsgClass。
确保你的css文件已经载入。
yongyuan.jiang (初级程序员) 2008-07-27