问题描述
是否可以在TinyMCE的文本区域添加边框半径?我在输入字段上弄圆了角,这真让我丧命,但是我无法在我的文本区域上使用它。.可能是因为TinyMCE将其变成了IFRAME?有没有办法解决?非常感谢!
Is it possible to add a border-radius to TinyMCE'd textareas? It's kinda killing me that I have rounded corners on my input fields etc, but I can't get it working on my textarea.. Probably because TinyMCE is turning it into an IFRAME? Is there any way around this? Thanks a lot!
推荐答案
一种解决方案是使用。
在加载默认的tinymce CSS之后应用此CSS,从而覆盖默认的CSS。
One solution is to use the editor_css setting.This css gets applied after the default tinymce css is loaded thus overwrite the default one.
我创建了一个名为editor.css的文件,其中包含以下内容
I created a file called editor.css containing the following
.defaultSkin table.mceLayout {border:1px solid black}
并使用editor_css设置tinymce参数
and set the tinymce parameter using editor_css
editor_css : 'path_to_css'.'/editor.css',
这会在编辑器周围创建一条漂亮的黑色细线。
This creates a nice thin black line around the editor.
这篇关于在TinyMCE textarea中添加边框半径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!