我正在使用dhtmlxTreeview:https://dhtmlx.com/docs/products/dhtmlxTreeView/如何在加载插件后重载图标类?
我需要重写CSS文件中的图标。如果我转到CSS文件并覆盖类,它将在浏览器中更新。
但是,当我第一次运行并重新加载插件时,即使使用!important
关键字,插件也不会尊重CSS覆盖。
如何覆盖该图标文件?
我需要改变这样的:
i.dhxtreeview_icon.dhxtreeview_icon_file {
background-image:url(imgs/dhxtreeview_web/icon_file.gif);
}
要这样:
i.dhxtreeview_icon.dhxtreeview_icon_file {
background-image:url(imgs/dhxtreeview_web/icon_folder_closed.gif) !important;
}
您可以粘贴一个小的HTML代码? – Daidon