简体   繁体   English

在CKEditor中设置RichCombo框的宽度

[英]Setting the width of a RichCombo box in CKEditor

I've created a plugin with a RichCombo box. 我创建了一个带有RichCombo框的插件。 Unfortunately the name of the dropdown is a little too long for the RichCombo and it gets cut off. 不幸的是,下拉列表的名称对于RichCombo来说有点太长了,并且被切断了。

在此处输入图片说明

Is there a way to force a wider RichCombo ? 有没有办法强制更广泛的RichCombo Likewise, is there a way to force a width of the actual dropdown list ( ListBox ) itself? 同样,有没有办法强制实际下拉列表( ListBox )本身的宽度?

The CSS value you seek is .cke_combopanel { width: 150px; } 您寻求的CSS值为.cke_combopanel { width: 150px; } .cke_combopanel { width: 150px; } . .cke_combopanel { width: 150px; } It can be found within editor.css . 可以在editor.css找到。

style your page with: 使用以下方式设置页面样式:

 .cke_combo_text { width: 130px !important; } .cke_combopanel { width: 370px !important; } 

I got it. 我知道了。 I added this to the page containing the ckeditor control: 我将其添加到包含ckeditor控件的页面中:

<style>
    .cke_combo_text { width:auto !important; }
    .cke_combopanel { height:600px !important; }
</style>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM