0

トグル ボタンを再描画しようとしていますが、何度試しても、上書きする適切な 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 クラスを失いました。それを変更する方法はありますか?

4

1 に答える 1

0

わかりました、私は解決策を見つけました。押されたトグルに必要な 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; 
}

スニペット

于 2016-04-13T08:30:22.690 に答える