内联 Kendo UI 编辑器 div 中的样式元素不起作用
Styling Elements inside inline Kendo UI Editor div not working
Kendo 编辑器呈现在页面上看起来像这样:
<div _ngcontent-c9 class="k-widget k-editor k-editor-inline" data-role="editor" contenteditable="true">
<p class="test-class">Hello World</p>
</div>
我希望能够设置一些内联文本的样式,但是 none 我的样式想要应用,并且在使用开发人员工具检查后它们根本没有出现,所以它没有似乎它们被覆盖了。
对应的样式如下:
.k-editor-inline .test-class{
outline: 1px solid red!important;
}
顺便说一句,我的样式适用于 .k-editor-inline div,只是其中没有内容。
Kendo 编辑器呈现在页面上看起来像这样:
<div _ngcontent-c9 class="k-widget k-editor k-editor-inline" data-role="editor" contenteditable="true">
<p class="test-class">Hello World</p>
</div>
我希望能够设置一些内联文本的样式,但是 none 我的样式想要应用,并且在使用开发人员工具检查后它们根本没有出现,所以它没有似乎它们被覆盖了。
对应的样式如下:
.k-editor-inline .test-class{
outline: 1px solid red!important;
}
顺便说一句,我的样式适用于 .k-editor-inline div,只是其中没有内容。