我想要得到以下内容以单行显示。我曾尝试使用样式浮动和显示。如何让ExtJS组合框与文本内联显示?
Show this input <input type="text" name="filterOp" id="filterOp"/> inline. <script type="text/javascript"> new Ext.form.ComboBox({ applyTo: 'filterOp', triggerAction: 'all', name: 'item', mode: 'local', lazyInit: true, displayField: 'name', valueField: 'id', forceSelection: true, typeAhead: true, inputType:'text', fieldLabel: 'Item selection', style: "display: inline-block", store: new Ext.data.JsonStore({ autoLoad: true, url: 'reporting/json_report_filter_operators.jsp', root: 'rows', fields:['id', 'name'] }) }) </script>
我想在浏览器中呈现时在同一行中看到“显示此输入”。 ComboxBox渲染时会生成一个div元素,它是一个块元素,将它渲染为一个新行。 – Artilheiro 2010-11-19 18:48:03