jquery - 如何在dynatree中使用jquery-ui图标

标签 jquery css jquery-ui icons dynatree

我想在 jquery dynatree 插件中嵌入 jquery-ui 图标。

http://jquery-ui.googlecode.com/svn/tags/1.6rc5/tests/static/icons.html

这里有一个基于 icons.gif 的解决方案。 how to customise dynatree image?

但是我可以使用 jquery-ui 图标吗?

最佳答案

Dynatree 的继任者 ( Fancytree) 允许这样做:

<li data-iconclass="ui-icon ui-icon-heart">'iconclass' is directly added to the image &lt;span>, so jQuery stock icons may be used

请在此处查看 demo

关于jquery - 如何在dynatree中使用jquery-ui图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12811139/

相关文章:

javascript - jquery中如何设置ajax调用的时间间隔

jquery - CytoscapeJS - 显示节点邻居?

jquery - jquery 中的下拉子菜单出现问题

html - 在 Li Tag 内部向左和向右浮动,每个都有单独的 anchor

javascript - 使用 JavaScript 显示绘图线

javascript - 事件处理程序继续调用早于动画函数

javascript - jQuery UI 菜单在 PrestaShop 后台无法工作

javascript - Angular UI Sortable 无法正常工作

jquery - 更改滚动背景

css - 如何设置元素的宽度,同时仍允许文本对其进行拉伸(stretch)?