javascript - JsTree 的节点未使用在 IE 中的类型插件中指定的图标

标签 javascript jquery internet-explorer internet-explorer-8 jstree

在我的应用程序中,我创建了以下 jsTree

$('#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 使用正确的类型图标,而不是使用默认图标?

最佳答案

尝试将其放在页面顶部以禁用怪癖模式:

<!DOCTYPE html 
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 

引用: http://groups.google.com/group/jstree/browse_thread/thread/e049c1a6eb24b44a

关于javascript - JsTree 的节点未使用在 IE 中的类型插件中指定的图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4852784/

相关文章:

python - 在 Pylons 中禁用浏览器缓存

javascript - OnKeyDown 不适用于 IE9,但适用于所有其他浏览器

javascript - 安装 react-addons-transition-group 时遇到问题

javascript - 使用 JSON 和 Vega-lite 在散点图上绘制多个点

javascript - 为什么我的 `then` 事件在我的 `when` 事件完成之前触发?

javascript - 如何在修改后恢复图像的宽度和高度

javascript - 将值绑定(bind)并写回父作用域,而不在指令中使用隔离作用域

javascript - 验证文本框中的 double 类型

jquery - 使用 jQuery 将 textarea html 内容更新到 iframe(实时)

internet-explorer - 帮助解决空白 : nowrap and normal in IE