Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 当工具栏按钮为“时,如何更改其背景”;“在”上;,像重做/撤消(tinymce)_Css_Tinymce - Fatal编程技术网

Css 当工具栏按钮为“时,如何更改其背景”;“在”上;,像重做/撤消(tinymce)

Css 当工具栏按钮为“时,如何更改其背景”;“在”上;,像重做/撤消(tinymce),css,tinymce,Css,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

我看到了一个类似的问题

根据这里的答案,我现在有了这个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;
}   
这一切都可以工作,但当一个按钮被切换到on时,没有显示这一点:

“撤消/重做”按钮可更改背景,使其清晰可见。其他按钮怎么做

例如:


谢谢。

整理好了。我基本上需要相同颜色的工具栏和按钮,以便矩形显示:

/* 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;
}