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使用类型的正确图标,而不是使用默认图标?
这似乎解决它,随机IE古怪的很多是正在发生的一起没有理由! – KallDrexx 2011-04-21 17:12:49