在本问答中;A.How do you change the visual editor's background color?, 本文展示了如何修改WordPress编辑器的背景色<我的问题是如何在全屏模式下修改编辑器的背景色?(也称为“无分心”模式)
链接线程中的解决方案不适用于全屏编辑器模式。
全屏编辑背景色
1 个回复
最合适的回答,由SO网友:brasofilo 整理而成
使用Chrome Inspector 或Firefox Firebug.
通过检查元素,我们可以获得必要的ID或类以添加到样式表中。
所以.mceContentBody.wp-fullscreen-editor
是我们需要在主题文件中解决的问题editor-style.css
:.mceContentBody.wp-editor, .mceContentBody.wp-fullscreen-editor {
background-color: #000;
color: #fff;
}
结束