如何自定义dynatree图像? [英] how to customise dynatree image?

查看:79
本文介绍了如何自定义dynatree图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jQuery dynatree插件.(http://wwwendt.de/tech/dynatree/doc/samples.html)我正在使用其vista主题,我想代替左侧的小三角形(节点扩展器符号)每个文件夹中都会出现我的自定义图片(加号)符号.另外,我想删除文件夹图像,并且不应使用任何图像代替文件夹图像. 有可能吗?

I am using jquery dynatree plugin.(http://wwwendt.de/tech/dynatree/doc/samples.html) I am using its vista theme,I want instead of small triangle on the left(node expander symbol) of each folder,my custom image (a plus ) symbol to come. More over I want to remove folder image and no image should be used in place of folder image.. is it possible?

推荐答案

您可以为图像编辑CSS文件中使用的图像.我们将文件夹图标替换为外观更漂亮的图标,并且Windows 7样式箭头的树线指示树是否已展开.

You could edit the image used in the CSS file for the images. We replaced the folder icons with nicer looking ones, and the tree lines to windows 7 style arrows indicating whether the tree was expanded or not.

我们编辑的图像是icons.gif.

The image we edited was icons.gif.

请确保将替换图像对齐在同一位置,以避免更改css文件中的所有背景位置.

Just make sure you align the replacement images in the same place to avoid changing all the background positions in the css file.

这篇关于如何自定义dynatree图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆