gpt4 book ai didi

css - 更改 YUI 3 Treeview 中的默认文件夹图标

转载 作者:行者123 更新时间:2023-11-28 13:22:18 25 4
gpt4 key购买 nike

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com