TreeView (使用 gallery-yui-treeview)中的默认图标是带箭头的文件夹图标或页面图标。我想将其更改为加号/减号。我想需要对使用的皮肤做些什么,但我无法弄清楚是什么以及如何做。请帮忙。
最佳答案
查看有关 YUI 皮肤的页面:http://yuilibrary.com/yui/docs/tutorials/skins/
使用要显示的文件夹创建您自己的 Sprite (默认为:tree_view_icons_blue_01_arrow_beside_folders.gif)
然后,像这样覆盖显示文件夹的跨度:
<style>
.yui3-treeview-label-content{
background-image: url("my_new_folder_sprite.png");
}
</style>
关于css - 更改 YUI 3 Treeview 中的默认文件夹图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14535495/