在extjs中使用自定义的图标,一般使用的是16*16的png格式的
  1.创建css样式:
   .peiy-excel{background: url(../images/excel.png) left top no-repeat!important;}
   .peiy-printer{background: url(../images/printer.png) left top no-repeat!important;}
  2.将png图标文件拷贝到相应的images目录中
  3.在js中定义
   var btn_print = new Ext.Button({ 
   text: '打印',
   iconCls : 'peiy-printer'
   });

相关文章:

  • 2021-11-06
  • 2021-12-14
  • 2021-07-18
  • 2021-12-12
  • 2021-06-18
  • 2022-02-04
  • 2021-09-08
猜你喜欢
  • 2021-12-26
  • 2021-11-18
  • 2021-09-22
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案