extjs bbar iconCls 请问这个图标怎么加载进来呀

logive 2010-10-05 05:51:06
extjs bbar代码 iconCls : 'icon-plugin',为什么我的图标显示不出来呢,还有没有其它的加载图标的方法呢
bbar : [{
text : '开始',
iconCls : 'icon-plugin',
menu : new Ext.menu.Menu({
items : [{
text : '关于系统',
iconCls : 'icon-info',
handler : function() {
new Ext.Window({
closeAction : 'close',
resizable : false,
bodyStyle : 'padding: 7',
modal : true,
title : '关于本系统',
html : 'hello',
width : 300,
height : 200
}).show();
}
}, {
text : '退出系统',
iconCls : 'icon-delete',
handler : function() {
Ext.Msg.confirm('操作提示', '您确定要退出本系统?', function(btn) {
if ('yes' == btn) {
Ext.Ajax.request({
url : 'logout.action',
success : function() {
location = '/index.jsp';
},
failure : function() {
Ext.Msg.show({
title : '错误提示',
msg : '退出系统失败!',
icon : Ext.Msg.ERROR,
buttons : Ext.Msg.OK
});
}
});
}
});
}
}]
})
}],
...全文
1589 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
lovezxf888 2012-10-24
  • 打赏
  • 举报
回复
最后面的那个回答是正解
zhang4127231988 2011-10-30
  • 打赏
  • 举报
回复
不知道解决了没?加自定义图标iconCls : 'icon-plugin',
'icon-plugin'是类名,在样式中加上.icon-plugin{
background-image: url(../themes/images/login0.png) !important;
}
f504501983 2011-09-08
  • 打赏
  • 举报
回复
换个别的图标试试,如果可以,可能是缺失该文件……
good9006 2010-11-29
  • 打赏
  • 举报
回复
..................
myisfei 2010-10-05
  • 打赏
  • 举报
回复
有,xtype:panel,用panel来加载

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧