Button ExtJS按钮样式工具栏

Button ExtJS按钮样式工具栏,button,extjs,styles,toolbar,Button,Extjs,Styles,Toolbar,我想知道是否可以将一个按钮放入面板的工具栏中,但让它保留按钮的外观,就像它只是在普通面板中一样 例如,我希望按钮如下所示: 但是,它看起来是这样的: 非常感谢 编辑 创建工具栏的代码: xtype: 'toolbar', items: [ { xtype: 'button', text: 'Select bounding box on map',

我想知道是否可以将一个按钮放入面板的工具栏中,但让它保留按钮的外观,就像它只是在普通面板中一样

例如,我希望按钮如下所示:

但是,它看起来是这样的:

非常感谢

编辑

创建工具栏的代码:

xtype: 'toolbar',
        items:
        [
            {
                xtype: 'button',
                text: 'Select bounding box on map',
                id: 'bbBoxButton',
                icon: 'img/cross_cursor.gif',
                listeners: {
                    click: function(){
                        polygonControl.activate();
                    }
                }   
            }
        ]
创建常规按钮的代码:

{xtype: 'button',    id: 'bboxButton', text: 'Select bounding box on map', icon: 'img/cross_cursor.gif', listeners: {click: function(){polygonControl.activate()}}}

我相信我必须为按钮使用cls配置,但我似乎找不到合适的css类。

我遇到了完全相同的问题。要解决此问题,我将其传递到按钮:

cls:'x-btn-default-small'
加上这个

ctCls: 'x-btn-over'

按钮配置为我解决了Ext 2.2.1中的问题

请包含您尝试过的代码。一旦您滚动按钮,该类不会被删除吗?这对IE8不起作用