请教在GWT GXT中如何自定义控件的css样式

如题所述

参考下面代码:
Java代码
Button cancelButton = new Button("Cancel");
Button loginButton = new Button("Login");
loginButton.setStyleName("buttons");
===css====

Css代码
.gwt-button {
background: #EEEEFF;
color: #0000CC;
font-size: 12px;
}
.buttons {
background: #CCCCCC;
color: #333333;
font-size: 12px;
}
温馨提示:答案为网友推荐,仅供参考
相似回答