【发布时间】:2018-01-09 14:51:46
【问题描述】:
在 CKEditor 中,当我将样式从 Normal 更改为 H1、H2 或 H3 时,下拉菜单中的字体标签没有改变!
当用户自动更改标题样式时,我想更改字体标签。我该怎么做?
Content.css
h1
{
font-size: 28px !important;
}
h2
{
font-size: 24px !important;
}
h3
{
font-size: 22px !important;
}
h4
{
font-size: 20px !important;
}
h5
{
font-size: 18px !important;
}
高亮的字体标签应该根据定义的css改变!我通过在 contents.css 中添加 css 来尝试上述方法,但它不起作用!
【问题讨论】:
-
添加HTML,我们只是不知道您使用的元素,所以我们无法知道在哪里更改以帮助您
-
CKEditor 只是按名称或 ID 定位!我觉得没必要加!如果有人是开发人员,他/她就知道!
标签: javascript html css ckeditor editor