减小TinyMCE textarea中的行间距 [英] Decrease the line spacing in TinyMCE textarea
本文介绍了减小TinyMCE textarea中的行间距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用TinyMCE来提供丰富的文本编辑文本编辑器。但是线条之间的线间距太大。我添加了一个屏幕截图,显示按下输入时的行间距。可以做些什么
I am using TinyMCE to provide a rich text editing text editor. But the line spacing between the lines is too much. I have added a screenshot that shows the line spacing I get on pressing an enter. What can be done about it
推荐答案
有一个应用于TinyMCE html内容的css类。看起来你有< p>
标签导致间距。老实说,这对我来说很不错。但您可以在css类中重写:
There is a css class that is applied to the TinyMCE html content. It looks like you have <p>
tags causing the spacing. Honestly, it looks pretty good to me. But you can override in the css class:
.tinymce-content p {
padding: 0;
margin: 2px 0;
}
请参阅消息文档了解更多信息。
这篇关于减小TinyMCE textarea中的行间距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文