Ext.onReady(function(){
var form = new Ext.form.FormPanel({
title:'商品查询',
labelSeparator:':',
labelWidth:80,
bodyStyle:'padding:5',
frame:true,
collapsible:true,
height:200,
width:(window.screen.width-230),
renderTo:'form',
items:[
new Ext.form.TextField({
fieldLabel:'商品名称',
id:'pname',
width:(window.screen.width-320)*0.18,
itemCls:'float-left',
clearCls:'allow-float',
selectOnFocus:true,
allowBlank:true
}),
new Ext.form.TextField({
fieldLabel:'生产厂商',
id:'pname2',
width:(window.screen.width-320)*0.18,
itemCls:'float-left',
clearCls:'allow-float',
selectOnFocus:true,
allowBlank:true
}),
new Ext.Button({
text:'开始查询',
itemCls:'float-left',
clearCls:'allow-float'
})
]
});
});ext 元素换行
var form = new Ext.form.FormPanel({
title:'商品查询',
labelSeparator:':',
labelWidth:80,
bodyStyle:'padding:5',
frame:true,
collapsible:true,
height:200,
width:(window.screen.width-230),
renderTo:'form',
items:[
new Ext.form.TextField({
fieldLabel:'商品名称',
id:'pname',
width:(window.screen.width-320)*0.18,
itemCls:'float-left',
clearCls:'allow-float',
selectOnFocus:true,
allowBlank:true
}),
new Ext.form.TextField({
fieldLabel:'生产厂商',
id:'pname2',
width:(window.screen.width-320)*0.18,
itemCls:'float-left',
clearCls:'allow-float',
selectOnFocus:true,
allowBlank:true
}),
new Ext.Button({
text:'开始查询',
itemCls:'float-left',
clearCls:'allow-float'
})
]
});
});ext 元素换行
解决方案 »
- 请问JS或者JQ如何控制动态产生的元素的CSS属性?
- 请问高人光标处插入div元素(只差一步了,100分)
- 经常在网上看到下面效果,就是不知道人家如何用JavaScript实现的?请大家告知一下,谢谢了!
- javaScript 重载问题
- 到底是怎么循环的呢?
- textarea里面怎么取得输入内容的字节数?
- 急!!!如果页面中存在名为fraSun的iframe,则先将这个fraSun删除再创建fraSun(宽300,高200);否则直接创建这个fraSun(宽300,高200)
- 请推荐一本比较全面经典的javascript书籍!说说他为什么经典,谢谢!!
- 怎么样把JAVASCRIPT的值直接给JSP脚本?
- 如何写一个tree view?
- buffer.readUInt32BE 的问题
- 正则表达式求 求详解求详解]
你需要根据自己的需求来设置layout