【问题标题】:smartgwt button cannot override skin_styles.csssmartgwt 按钮不能覆盖 skin_styles.css
【发布时间】:2012-02-29 06:51:14
【问题描述】:

我想在 smartgwt 中为 ibutton 的 titleStyle 添加红色背景和白色。我无法覆盖 skin_styles.css。如何覆盖 smartgwt 中按钮的 skin_styles?简单的 addStyleName() 或 setPrimaryStyleName 不起作用。有人试过吗?setBase Style 也一样。

【问题讨论】:

  • 您的皮肤和样式似乎有问题:

标签: css styles smartgwt skinning


【解决方案1】:

看来你的皮肤和样式有问题,如果你想为小部件添加样式(你以前的帖子),你可以使用某种代码:

    String newStyle;
    String actualStyle= o.getStyleName();
    if(actualStyle!= null){
         newStyle= actualStyle+ " " + styleNameYouWant;
    }else{
        newStyle= styleNameYouWant;
    }
    o.setStyleName(newStyle);       

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-10-14
    • 2011-01-30
    • 1970-01-01
    • 1970-01-01
    • 2014-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多