为什么我的文本框前的文本出不来?

kkk444dsfsa 2011-08-22 05:02:30


var west = new Ext.Panel({
collapsible: true,
border: false,
width: 200,
layout: "column",
layoutConfig: {
animate: true
},
region: "west",
title: '查询条件',
items: [new Ext.Panel({ autowidth: true, autoheight:true, title: '', items: [
{
xtype: 'textfield',
fieldLabel: '类型',
name: 'totaltype',
readOnly: true
}, {
xtype: 'textfield',
fieldLabel: '金额',
name: 'totalmoney',
readOnly: true
}, {
xtype: 'textfield',
fieldLabel: '时间',
name: 'totaltime',
readOnly: true
}, {
xtype: 'textarea',
fieldLabel: '描述',
name: 'totalremark',
readOnly: true
}]
})]
});
...全文
140 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
hexiaofang_117 2011-08-23
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 niuxudong1 的回复:]
就是一个layout方式的问题,改为form方式就行了。
[/Quote]应该是这个问题,Lz试试吧
niuxudong1 2011-08-23
  • 打赏
  • 举报
回复
就是一个layout方式的问题,改为form方式就行了。
ningyb 2011-08-23
  • 打赏
  • 举报
回复

这种问题,好好检查吧,
kkk444dsfsa 2011-08-23
  • 打赏
  • 举报
回复
嗯 是layout:'form' ok
mokson 2011-08-23
  • 打赏
  • 举报
回复
字体的颜色与背景颜色相同?
豆虫 2011-08-22
  • 打赏
  • 举报
回复
var west = new Ext.Panel({
collapsible : true,
renderTo : Ext.getBody(),
border : false,
width : 300,
frame : true,
layout : "column",
layoutConfig : {
animate : true
},
region : "west",
title : '查询条件',
items : [new Ext.Panel({
autoWidth : true,
autoHeight : true,
layout : 'form',
title : '',
items : [{
xtype : 'textfield',
fieldLabel : '类型',
name : 'totaltype',
readOnly : true
}, {
xtype : 'textfield',
fieldLabel : '金额',
name : 'totalmoney',
readOnly : true
}, {
xtype : 'textfield',
fieldLabel : '时间',
name : 'totaltime',
readOnly : true
}, {
xtype : 'textarea',
fieldLabel : '描述',
name : 'totalremark',
readOnly : true
}]
})]
});
})

最主要的 需要指定Panel的布局layout

87,990

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧