我试图重新绘制一个切换按钮,但在尝试之后,我仍然找不到合适的CSS样式来覆盖。
当前的实现是http://webix.com/snippet/ebbe2e11
CSS:
.webix_el_toggle button{
background-color:grey !important;
border-color: gray !important;
}
.webix_el_toggle.webix_pressed button{
background-color:green !important;
border-color: green !important;
}正如您所看到的,.webix_el_toggle.webix_pressed不起作用,我最终在CSS类中丢失了切换。有办法改变吗?
发布于 2016-04-13 08:30:22
好吧,我找到了解决办法。按下切换所需的CSS类是.webix_el_box.webix_pressed。
.webix_el_toggle button{
background-color:grey !important;
border-color: gray !important;
}
.webix_el_box.webix_pressed button{
background-color:green !important;
border-color: green !important;
}片段
https://stackoverflow.com/questions/36579628
复制相似问题