本文介绍了smartgwt按钮不能覆盖skin_styles.css的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在smartgwt中为ibutton的titleStyle添加红色背景和白色。我不能覆盖skin_styles.css。如何覆盖在smartgwt按钮的skin_styles?简单的addStyleName()或setPrimaryStyleName不工作。有人尝试过吗?setBase Style也。
I want to add red background and white color for titleStyle for ibutton in smartgwt. I cannot override skin_styles.css. How to override skin_styles for button in smartgwt? Simple addStyleName() or setPrimaryStyleName does not work. Have somebody tried it?setBase Style also.
推荐答案
看起来你有皮肤和风格的问题,如果你想添加style你可以使用某种代码:
It seems you have issues with skinning and style, If you want to add a style to a widget(your previous post) you can use some sort of code:
String newStyle;
String actualStyle= o.getStyleName();
if(actualStyle!= null){
newStyle= actualStyle+ " " + styleNameYouWant;
}else{
newStyle= styleNameYouWant;
}
o.setStyleName(newStyle);
这篇关于smartgwt按钮不能覆盖skin_styles.css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!