gpt4 book ai didi

javascript - ExtJS 4.1 - 覆盖 Ext.LoadMask 的 css

转载 作者:太空宇宙 更新时间:2023-11-04 04:09:51 25 4
gpt4 key购买 nike

我需要将 Ext.LoadMask 的默认背景颜色从白色改写为灰色。我怎样才能做到这一点?还添加了图像的屏幕截图和我用来加载蒙版的代码。

My Mask

var feestore = this.getBillingFeePanelStoreStore();
feestore.on({
beforeload: this.beforeFeestoreLoad,
scope: this
});

beforeFeestoreLoad: function(store, operation, eOpts){
var myMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait.... Your request is being processed"});
myMask.show();

感谢任何帮助。

最佳答案

使用“maskCls” ' 定义您自己的样式,然后添加适当的 css

    var myMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait.... Your request is being processed", maskCls:'customLoadMask'});

CSS:
.customLoadMask {
filter: alpha(opacity=70);
opacity: .7;
background: grey !important;
}

关于javascript - ExtJS 4.1 - 覆盖 Ext.LoadMask 的 css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20836231/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com