CSS is not working in GXT

你。 提交于 2019-12-11 05:04:16

问题


I am in learning phase of GWT GXT,

I my project some of the css are working fine , but some are showing me a strange behavior .

for login button.

logonBtn = new TextButton("Connect");
        logonBtn.setIconAlign(IconAlign.RIGHT);
        logonBtn.setIcon(Resources.INSTANCE.login());
        logonBtn.setStyleName("Project-Button");

Css

.Project-Button {
    color: Black;
    border: thin outset #FF6600;
    font-family: Courier New, Century Gothic, Times New Roman, Verdana, Arial;
    vertical-align: middle;
    background-position: left center;
    background-color: White;
    cursor: pointer;
}

But when i run the project , this css is not showing any effect on connect button.

In my Project i have i have 6 or 7 TextButton. But this css is showing effect in only one of these buttons

I tried to use Firebug to see the problem. I see there is no Project-Button css attached with this textButton.

Attached is the Image of fireBug.

If somebody understand this , please explain and give the solution.

Thanks in Advance.


回答1:


If tou change GXT Text button style you have to write your ButtonCellAppereance. GXT button styles too complex as other gxt widgets. example link about appereance

1: http://www.slideshare.net/senchainc/ext-gwt-30-theming-and-appearances i started a project on gwt projects as theme project link

but i have no more time to develop. good hacking...



来源:https://stackoverflow.com/questions/16001146/css-is-not-working-in-gxt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!