1

在我的应用程序jsTree创建JsTree的节点使用类型指定的图标不使用插件的IE

$('#categoryTree').jstree({ 
    plugins: ['themes', 'html_data', 'contextmenu', 'ui', 'types'], 
    contextmenu: { 
     items: ContextMenuItems 
    }, 
    ui: { 
     select_limit: 0 
    }, 
    themes: { 
     theme: 'classic' 
    }, 
    types: { 
     type_attr: 'nodetype', 
     types: { 
      category: { 
       icon: { image: baseUrl + '/Images/folder.png' } 
      }, 

      testcase: { 
       icon: { image: baseUrl + '/Images/hlp.png' } 
      } 
     } 
    } 
}); 

一切工作在FF和Chrome太好了,我有以下,类别节点使用指定的folder.png和测试用例节点使用hlp.png作为它们的图标。

但是,Internet Explorer似乎并不尊重这一点,它对所有节点使用默认图标。任何人有任何想法如何强制IE使用类型的正确图标,而不是使用默认图标?

回答