簡體   English   中英

如何在“打開”時更改工具欄按鈕的背景,例如重做/撤消(tinymce)

[英]How to change background of toolbar button when it is “on”, like the redo / undo (tinymce)

我在這里看到了一個類似的問題。

根據那里的答案,我現在有了這個 CSS:

/* toolbar */
.mce-toolbar-grp {
    background-color: grey !important; /* uses !important or override .mce-panel background-color/image */
    background-image: none !important;
}

/* text color */
#tinymce {
   color: #dd9900;
}

/* button text color */
.mce-ico {
   /*color: #dd9900;*/
    color: #000 !important;
}

/* button background color */
.mce-btn button {
    background-color: #fff;
}       

/* button background color (hover) */
.mce-btn button:hover {
    background-color: lawngreen;
}   

一切正常,但是當一個按鈕被切換到打開時,沒有任何跡象表明:

撤消/重做按鈕更改背景,使其清晰。 我怎樣才能為其他按鈕做到這一點?

例子:

https://www.publictalksoftware.co.uk/forums/forum/meeting-schedule-assistant/assignments-editor/

謝謝。

對其進行排序。 我基本上需要具有相同顏色的工具欄和按鈕,以便顯示矩形:

/* toolbar */
.mce-toolbar-grp {
    background-color: #fff !important; /* uses !important or override .mce-panel background-color/image */
    background-image: none !important;
}

/* text color */
#tinymce {
   color: #dd9900;
}

/* button text color */
.mce-ico {
    color: #000 !important;
}

/* button background color */
.mce-btn button {
    background-color: #fff;
}           

/* button background color (hover) */
.mce-btn button:hover {
    background-color: darkgray;
}   

工具欄 - 打開按鈕

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM