如何调整kendo ui组合框的大小? [英] How to resize a kendo ui combobox?
本文介绍了如何调整kendo ui组合框的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何更改kendo ui组合框的宽度?我使用版本:2012.3.1114
我试过:
How can I change the width of kendo ui combobox? I use version: 2012.3.1114 I've tried:
#options {
padding: 30px;
}
#options h3 {
font-size: 1em;
font-weight: bold;
margin: 25px 0 8px 0;
}
.k-combobox{
width:60px; }
Javascript: $(#select)。kendoComboBox
Javascript: $("#select").kendoComboBox();
Html:
<select id="select">
<option value="null">nada</option>
<option value="true">ON</option>
<option value="false">OFF</option>
</select>
使用文件可以正常工作,但不能在jsfiddle中:示例
With a file it works but not in jsfiddle: example
推荐答案
P>
Try This :
$(document).ready(function() {
$("#select").kendoComboBox();
$("#select").parent().css('width',"300px");
});
您也可以这样做:
$(document).ready(function() {
$("#select").width(400).kendoComboBox();
});
这篇关于如何调整kendo ui组合框的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文