【发布时间】:2012-08-03 02:30:30
【问题描述】:
ExtJS4:
当我将鼠标悬停在 Ext.Button 上时,我希望它具有我的颜色。我为此写了以下内容:
Ext.onReady(function(){
Ext.create('Ext.Button', {
renderTo: Ext.getBody(),
text: "Submit",
overCls: 'x-button-pressed'
});
});
“x-button-pressed”定义为:
.x-button-pressed{
background: red;
}
这在 Mozilla 10 但在 IE 7 中运行良好。请帮助。
【问题讨论】:
-
不确定这是否能解决问题,但它应该是背景色而不是背景,因为您只指定了一个属性。
-
我也试过背景色。它甚至在 Mozilla 中也不起作用。至少背景是在 Mozilla 工作。您还有其他选择可以在 IE7 中尝试吗?