gpt4 book ai didi

javascript - ExtJS - 自定义 MessageBox 图标多次出现

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

我有一个 Extjs 4 应用程序,带有一个消息框和一个自定义图标类来显示一个复选框。无论我将什么 32x32 *.png 放在那里,图片都会重复出现。

设置图标格式使其不再重复的正确方法是什么?

Evidence

Picture

代码

 Ext.Msg.show({
title: 'Success',
msg: 'Control settings changed.',
icon: 'save-success',
buttons: Ext.Msg.OK
});

//CSS
.save-success{
background-image: url(../images/icons/accept-1.png);
width: 32px;
height: 32px;
}

最佳答案

save-success中,添加no repeat:

.save-success{
background-image: url(../images/icons/accept-1.png);
background-repeat: no-repeat;
width: 32px;
height: 32px;
}

关于javascript - ExtJS - 自定义 MessageBox 图标多次出现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51830127/

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