着色 dhtmlxSidebar
Colorize dhtmlxSidebar
我在示例中有 2 个 dhtmlxSidebars
here
如何为嵌套的背景颜色设置不同的背景颜色?
如果我添加 css
.dhxsidebar_side {
background-color: # 427C9C !important;
}
它为两个背景应用更改…
在您的情况下,主要元素将是第一个元素 [0] 和嵌套的 - 第二个 [1]:
(我设置了不同的蓝色)
document.getElementsByClassName("dhxsidebar_side")[0].style.backgroundColor = "#add8e6";
document.getElementsByClassName("dhxsidebar_side")[1].style.backgroundColor = "#d5f2fc";
您也可以通过以下方式应用简单和选定的项目背景颜色:
.dhxsidebar_item {
background-color: #ffffff !important;
}
.dhxsidebar_item_selected {
background-color: #b5deff !important;
}
我在示例中有 2 个 dhtmlxSidebars here 如何为嵌套的背景颜色设置不同的背景颜色? 如果我添加 css
.dhxsidebar_side {
background-color: # 427C9C !important;
}
它为两个背景应用更改…
在您的情况下,主要元素将是第一个元素 [0] 和嵌套的 - 第二个 [1]: (我设置了不同的蓝色)
document.getElementsByClassName("dhxsidebar_side")[0].style.backgroundColor = "#add8e6";
document.getElementsByClassName("dhxsidebar_side")[1].style.backgroundColor = "#d5f2fc";
您也可以通过以下方式应用简单和选定的项目背景颜色:
.dhxsidebar_item {
background-color: #ffffff !important;
}
.dhxsidebar_item_selected {
background-color: #b5deff !important;
}